Quantcast
Channel: Forum Getting started with SQL Server
Viewing all 6989 articles
Browse latest View live

Network connection SQL server on Hyper-V

$
0
0

Can someone help me with the creation of an Internet / network connection from a SQL Server installed on a Windows 10 computer using Hyper-V. The institutions within Hyper-V stand on external but get no connection. Is there anyone who has knowledge or experience with this.


sql server 2008 r2 express64 bit

$
0
0

Hi Team,

Can anyone help me with "Edition WOW64 Platform Failed - > Error" how to fix it, i need to install on my test environment to perform work.

I Checked in regedit too but not able to find WOW64 file in below location:

HKEY_LOCAL_MACHINE -> SYSTEM -> CURRENT CONTROL SET -> SERVICES -> msiserver


Best Regards

Atul

VisualStudio 2012 - Create distinct values for a parameter

$
0
0

Hello,

I'm having trouble creating distinct values for a parameter in a report in Visual Studio Report Server Project.

Normally I would create a separate query and dataset that brings in distinct values from a simple query.

But with more advanced queries that take longer to run I thought it best to create a global temp table in my detail query/dataset and reference the global temp using a "select distinct Column1 from ##GlobalTemp" - but i cannot get this to work. I've selected "Use single transaction when processing the queries" and it still appears that my datasets are running parrallel instead of linear.  The error says that the global temp table does not exist yet.

Can anyone help me find a solution for this - or help me create a distinct list using the parameter expression referencing my detail data set?

Thank you.

Connecting SQL to a database in Azure

$
0
0

Hello, I am setting up my first database in Azure and am trying to connect through SQL. Every session has timed out on me so far and I can't figure out what the problem might be. I get the following message - "Can't connect to local MySQL server through socket '(null)' (57)" Any Suggestions?

Thanks

How to make rows in to columns in SQL

$
0
0

Hi,

I have a table like this...

DECLARE @ExtraCoverSQL TABLE (ECID VARCHAR(5),SI VARCHAR(5),EDF VARCHAR(5),EDT VARCHAR(5),NoOfDays VARCHAR(5))

INSERT INTO @ExtraCoverSQL (ECID, SI, EDF,EDT,NoOfDays)
SELECT 'A2','B2',NULL,NULL,'E2'
UNION
SELECT'A3','B3',NULL,NULL,NULL
UNION
SELECT 'A4',NULL,'C4','D4','E4'
UNION
SELECT 'A5',NULL,'C5','D5',NULL

SELECT * FROM @ExtraCoverSQL
This is the result for above query
ECID	SI	EDF	EDT	NoOfDays
A2	B2	NULL	NULL	E2
A3	B3	NULL	NULL	NULL
A4	NULL	C4	D4	E4
A5	NULL	C5	D5	NULL

Please help me to give below ouput from above result.

ExcelCellNo  CellDesc

A2            ECID_1
B2            SI_1
E2            NoOfDays_1
A3            ECID_2
B3            SI_2
A4            ECID_3
C4            EDF_3
D4            EDT_3
E4            NoofDays_3
A5            ECID_4
C5            EDF_4
D5            EDT_4

Thank you in advance.





Send e-mail (or something else) during or after the silent installation (SQL Serv 2012 and younger).

$
0
0

This parameter exists for sending data to Microsoft:
; Specify that SQL Server feature usage data can be collected and sent to Microsoft. 
Specify 1 or True to enable and 0 or False to disable this feature. 
SQMREPORTING="True"

Can I somehow send e-mail (or something else) to myself when installation just started or is done?

Thank you for any help or advice.

SQL - How to combine multiple columns in to one column?

$
0
0

Hi,

I have a table like below.


And I would like to combine columns in to single column by ignoring NULL values

ColumnResult

D13 F13 D18 H18 I18 D23 F23

Thank you.


SQL SERVER Performance Reports

$
0
0

Hi Team,

we are working SQL SERVER 2008, Need SQL SERVER performance reports last 7 days. I have checked only its showing todays reports 

Kindly advise me how to get performance reports last seven days.


subu


Could i use SQL Server 2016 Evaluation Edition for first 3 months for production purposes?

$
0
0

As described in the title i want to ask.

Could i use SQL Server 2016 Evaluation Edition for first 3 months for production purposes?

Since we have tight schedule for go live deployment, definitely after 3 months has passed we are going to update to SQL Server 2016 Enterprise Edition (Licensed)



Start Tutorials for SQL Server 2016

$
0
0

I wanted to ask a couple more things before I begin the tutorials. I was going to start with the SSRS Reporting Services tutorial.



- Do I just need the Adventure Works sample data specified within this tutorial to complete it?

- Do I need any other additional software/utility?

- Can I accomplish these tutorials with my SQL Server Express 2016?

Thank you for those who pointed me to this. It is just what I was looking for!


JohnB

SQL Query with Rank

$
0
0


I have a SQL db with number of loans for each customer and their current balance for past five years. ( The date part contains year, month, day)

The Max current unpaid balance customer is Rank number 1 and will be in the first row and first column. .

The number of loans hold by this customer is displayed in the second group by year.

The third group will have the current balance by year. (which is sum of balance for all loans for this customer by year)

The fourth group contains the Rank of this customer in each year.

The last column contains the current year rank of the customer.

The customers a,b,c  should be in one group, other customers are in a different group in the first column.

The abc customers have higher rank than other customers. I  need the sql query for this

Update:

Declare @a Table (Name Varchar(100),Loan Varchar(100),Balance int, LN Date DateTime)
Insert into @a
select 'a','loan1',120, 01/05/2010
union select 'a','loan2',100, 01/05/2015
union select select 'a','loan3',120, 01/05/2012
union select select 'a','loan4',150, 01/05/2015
union select 'b','loan1',10, 01/05/2015
union select select 'b','loan2',20, 01/05/2012
union select select 'b','loan3',150, 01/05/2010
union select 'c','loan1',50, 01/05/2015
union select select 'c','loan2',10, 01/05/2012
union select select 'c','loan3',80, 01/05/2015

Result:










Authentication issue

$
0
0

I installed sql server 2014 on my system for practice. During the in stallion process i gave the authentication credentials as my system username and password.The installation process was successful.

But,when i tried to open sql server management studio I see the below is the error message.please help to debug the issue.

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections


problem with NT AUTHORITY\NETWORK SERVICE

$
0
0

Hi,

I have migrated sql to new windows server 2012 and im receving error like this every minute in system log.

Logging user „NT AUTHORITY\NETWORK SERVICE” failed. Reason: Could not find a login matching the name provided. [CLIENT: <named pipe>]

Can you help me diagnosing problem?

Using SQL Server Developer as a Teach Tool?

$
0
0

Hello,

My name is Anthony and I am currently obtaining a computer science degree in information security. My school seems to lack a good comprehensive program for database administration and management. I am currently setting up a workshop to help people with database management and administration concepts, as I have 15+ years experience using various RDBMSs. I am wanting to expose them to a Microsoft solution with a prebuilt database to show them how data is retrieved prior to talking about the process used to plan out the database. The SQL Server Express edition doesn't seem to have an example database that I can use, so I'm wondering if it's legal to use the SQL Developer Edition as a teaching tool?

I want to ensure I stay legit, as this isn't something I'm getting paid for, but feel it's an important subject to know and understand for a computer science degree. Thanks for any help.

Can't delete full text index, also can't rebuild it

$
0
0

I have a database on a remote server running sql server 2013(?) hosted by a hosting company. I decided I would like to be able to use it offline, so I backed it up and ftp'ed the backup to my local PC. I successfully restored it to a local version.  I was not able to back up "filegroups" but normally that is not a problem

The problem is that one of my tables has a field called "searchtext" (varchar(100)" which has a full-text index on it.  That does not work any more on my local copy (that I administer with sql server 2016).

so I connected to the local copy in SSMS, and clicked on 'storage", then right-clicked on the full text index name, and chose REBUILD.  This crashed SSMS.

So I tried deleting the field (the column named searchtext) from the table.  This failed, with an error message that the column was enabled for full text search.

So I tried deleting the full text index.  That failed too, with a similar error message.

And all this time, I wanted to be bicycling in Tahiti!

Any help is appreciated.


SQL Server Installation failed

$
0
0
I am trying to install sql server express 2016. My system has windows 10 64 bit with 8 gb ram, but installation is failed every time. searched a lot of topics but still issue persist, can someone help me!!

SQL Job need to target web.config file for its target DB.

$
0
0

How can we configure the SQL job that it would target the web.config file for the DB to target.

Example:

I have 2 DB's - DB1 and DB2

and jobs are configured to fetch data and make changes to data from DB1 and it will only use DB1 only.

Now, whenever i change the DB to DB2 in config file, jobs can't fetch the data from DB2 as they will fetch the data from DB1 only.

Is there any solution, where, whenever I change the DB in config file, the job will target to that DB only?

New SQL 2014 SQL Server Install On E Drive Saving 1GB of files on C drive

$
0
0

I just installed SQL 2014 SP2 as a prerequisite for Config Manager 1511.  

I specified drive letter E for the all the options during the setup wizard.  I see those directories on the E drive, but when I looked at the C drive, I saw that about 1GB of SQL directories and files where still created there.

How can SQL 2014 be installed without using so much or any space on the system drive?

MS SQL 2014 Standard edition Licencing issue

$
0
0

Hi Everyone ..,

We have purchased ms sql 2014 standard edition 5 months before ,

We lost the microsoft mail and product key ,

Is it possible get again ?

I have tried Technet.microsoft.com also , i am confusing in that link , how to log a ticket .It is asks subscription something ,

Please clarify this issue , 

Thanks in advance

LOG SHIPPING MONITOR SERVER

$
0
0

I HAVE A LOG SHIPPING CONFIGURATION WITH 3 SERVERS PRIMARY,SECONDARY AND MONITOR SERVER.

MY QUESTION IS HOW MONITOR SERVER (BY USING WHICH CREDENTIALS) WILL CONNECT TO PRIMARY AND SECONDARY SERVER ???

Viewing all 6989 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>