Quantcast
Channel: Getting started with SQL Server forum
Viewing all 9243 articles
Browse latest View live

WSUS can't connect to SQL DB

$
0
0

I have a Windows Server 2012 R2 install that I am trying to use as a WSUS server.

I have setup SQL Server 2012 Express on the server to be used as the WSUS database. When installing the WSUS role, I select the option to install the SQL database and continue through the wizard to the point where I have to connect to the database. At this point I enter 'ServerName\MSSQLSERVER' and select 'Check Connection'.

At this point, I get the following error: '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. (provider: SQL Network Interfaces, error: 25 - (Connection string is not valid)

I have tried using localhost and the server's IP for the name, but those fail as well. How can I get this working? It's urgent for me as I already have downtime scheduled for patching.

The server is not hosting any other roles and is joined to an existing domain. Unfortunaely, I don't have access to any of the other servers on the domain.


SQL Server 2014 SP1 and WSUS

$
0
0

Hi,

Is SP1 for SQL Server 2014 available on WSUS ?

If not when will it be available ? Guess there is a time slot between when it available on the download center and from WSUS?


/Regards Andreas

Be our SQL Server Guru of the month! Let us bestow glory and kudos upon you!

$
0
0

TechNet Gurus... we salute you!

You're awesome, and we know it!

Your knowledge uploads and nifty info nuggets are our life blood at TechNet Wiki.

Every awesome article that gets an award is just the start. We are building up the most sensational collection of gifts of knowledge from eminent community heavy weights and young guns alike. And we plan to promote you and your work wherever we can.

Reputations are being forged.

History is being made.

Generations will know your name.

Your children, grandchildren and great-grandchildren will marvel at your technical prowess.

And now, my mighty code warriors, cool consultants and platform specialists, now your chance is here again.

A new month of possibilities. Another chance to prove YOU are the ONE!

The mighty TechNet Guru medal winner for June!

Take up your mouse and keyboard!

Unleash your mighty words of wisdom and bask in the glory that we bestow upon you!

 

GO GO Gurus! Give, give, give!

 

All you have to do is add an article to TechNet Wiki from your own specialist field. Something that fits into one of the categories listed on the submissions page. Copy in your own blog posts, a forum solution, a white paper, or just something you had to solve for your own day's work today.

Drop us some nifty knowledge, or superb snippets, and become MICROSOFT TECHNOLOGY GURU OF THE MONTH!

This is an official Microsoft TechNet recognition, where people such as yourselves can truly get noticed!

HOW TO WIN

1) Please copy over your Microsoft technical solutions and revelations toTechNet Wiki.

2) Add a link to it on THIS WIKI COMPETITION PAGE (so we know you've contributed)

3) Every month, we will highlight your contributions, and select a "Guru of the Month" in each technology.

If you win, we will sing your praises in blogs and forums, similar to the weekly contributor awards. Once "on our radar" and making your mark, you will probably be interviewed for your greatness, and maybe eventually even invited into other inner TechNet/MSDN circles!

Winning this award in your favoured technology will help us learn the active members in each community.

Feel free to ask any questions below.

More about TechNet Guru Awards

Submit now : http://social.technet.microsoft.com/wiki/contents/articles/31200.technet-guru-contributions-june-2015.aspx

Thanks in advance!
Pete Laker


#PEJL
Got any nice code? If you invest time in coding an elegant, novel or impressive answer on MSDN forums, why not copy it over toTechNet Wiki, for future generations to benefit from! You'll never get archived again, and you could win weekly awards!

Have you got what it takes o become this month's TechNet Technical Guru? Join a long list of well known community big hitters, show your knowledge and prowess in your favoured technologies!

How to modify (Upgrade/downgrade) from Datacenter edition to Developer Edition of SQL Server 2008 R2 SP2?

$
0
0

Hello,

I have just migrated a complete SQL Server 2008 R2 SP2 development server from Windows 2003 to Windows 2008 Server.  I just realized that I should not have used the Data center edition Product Key as this is Development server.  I am being asked to downgrade to Developer edition.  I have already migrated all the logins, databases(40 databases), cubes etc.  I really can't uninstall and reinstall Developer edition.  How else can I upgrade/downgrade to switch from Datacenter edition to Developer edition.  Please help.  Thanks.

What is Remote Access Server Configuration Option and Remote Query Timeout ?

$
0
0

Hello All -

Could someone please pout these two things in perspective for me?

- when I disable "allow remote connections to this server" from server properties>connection page, I can still remotely connect to the server from SSMS...so what is the impact of enable/disabling it?

- what is the impact of changing the remote query timeout (on the same page) from default value?

Thanks

Rezwan

get only those distinct records which satisfied condition

$
0
0

Dear All,

I need to write a query on a table..

table defination .. table Client_Master

file_id int identity(1,1) primary key 

, client_id int

,LOAN_SANCTION_DATE datetime

,is_reject bit

has Data ..

FILE_IDCLIENT_IDLOAN_SANCTION_DATEIS_REJECT
2113922784 2014-02-03 00:00:00.0000
2114122784 2014-02-03 00:00:00.000NULL
2086922784 2014-02-03 00:00:00.0001
2087022784 2014-02-03 00:00:00.0000
2157122784 2014-02-03 00:00:00.0001
6605622784 2014-02-03 00:00:00.0001

Above has 6 files entries for client id 22784 and LOAN_SANCTION_DATE 2014-02-03  out of which 3 are rejected ..

Now , i want to write a query to select those 

distinct client_id , LOAN_SANCTION_DATE  from Client_Master where all files has been rejected ..

means by grouping client ID and LOAN_SANCTION_DATE all the files are rejected ..

I have wrote as below .. got the result but not satisfy with the query

SELECT DISTINCT CLIENT_ID,LOAN_SANCTION_DATE,COUNT(FILE_ID) AS No_Of_Files
,COUNT(DISTINCT CASE WHEN IS_REJECT=1 THEN FILE_ID END )AS No_Of_Rejected
FROM  dbo.FILE_MASTER 
GROUP BY CLIENT_ID ,LOAN_SANCTION_DATE
HAVING COUNT(FILE_ID)=COUNT(DISTINCT CASE WHEN IS_REJECT=1 THEN FILE_ID END )

Please , help 


Dilip Patil..

SQL 2012 expired, but new license doesn't require a key

$
0
0

We installed SQL 2012 evaluation and now it's expired.  We purchased SQL Server Standard Core (2014 but we were told it could be downgraded to 2012).  When I go to get a license key from the licensing web site, it pops up that no key is required.  How can I apply my new license if I don't have a product key?

Thanks


Tony G


convert from sql azure license to bring your own license (byol).

$
0
0

I have a server that I deployed from the gallery that had the enterprise version of SQL which cost way to much monthly and want to convert it to our own license.   My steps would be to do the following.

shutdown guest vm without sysprepping capture disk(s) removing vm.

redeploy vm from these disks (in essence just a clone)

 now this is were things get trickey (as far as I know)

I'll run the sql upgrade advisor and put our license key in.

Do these steps seem reasonable or will they even work :)

thanks

 

SQL server alias on config manager necessary?

$
0
0

Hi All, so you have two place to configure alias, in SQL server configuration manager under aliases tab on and on the cliconfg.exe tool on a different machine. If I want another server to see this sql server by the alias name I will need to configure the alias on the cliconfg tool on the client machine. It looks like as long as I have the alias configured in the cliconfg on the client machine, I don't need the alias to exist on the config manager, the client can still see SQLserver using just the alias on cliconfg...if so, I wondering under what situation I would really need the alias on the configuration manager? thanks in advance.

Thanks.

Rezwan


Central Management Server doesn't support multi domains

$
0
0
Hi Guys, 

As CM doesn't support SQL authentication, and if access SQL Server on another domain with no trust, we cannot use Windows authentication as well.
CM only supports Windows authentication, but for large organizations which will have multi domains, does anyone has better solutions for this? e.g. free SQL tools...

I am thinking if there is no proper way/tool, we will develop one then.

Thanks,
Albert

sql server agent

$
0
0

what is sql server agent?  and

how to configure sql server agent?.......

  Thanks in advance............

database does not appear in sql server management studio

$
0
0

Hi,

I'm new to SQL server and want to try it. To do this, i use VSC 2013 (C#, .net4.5, ADO) and i installed SQL Express 2014 on a PC Under W8.1pro. I succeeded to create and access a database with my application. My database is created with a code like:

using(var connection =newSystem.Data.SqlClient.SqlConnection("Data Source=(local); Integrated Security=true;User Instance=True;")){
	connection.Open();using(var command = connection.CreateCommand()){
		command.CommandText=String.Format("CREATE DATABASE {0} ON PRIMARY (NAME={0}, FILENAME='{1}')", dataBaseName, dbFileName );
		command.ExecuteNonQuery();

		command.CommandText=String.Format("EXEC sp_detach_db '{0}', 'true'", dataBaseName );
		command.ExecuteNonQuery();}}

My problem is to manage this database with "Microsoft SQL Server Management Studio"; i fact, i never succeeded to see my database in this tool. The .mdf file of my databae is located in a directory "C:\Users\myuseraccount\Documents\SQLServerExpDBs\". I tried to join my mdf file, but MSqlSMS refuse to display the content of all my user account directories.

Someone can explain how to manage such DB in MSqlSMS?

thanks in advance

Pascal

What Happens To Current Databases If I Rerun Installation Via SQL Server Installation Center?

$
0
0
I have admin. rights to the SQL 2014 box, but not to the instance of SQL 2014 on it. As a result I can't view the databases. Since it's a test machine could I rerun the installation (Via Installation Center), and give myself full rights without having to overwrite or drop the current databases?

Long running query

$
0
0

Hi,

I've got a query that's taking ages to run.

I think this is where it's getting held up. Can anybody tell me what's wrong and what I should be looking at to try to improve it?

Cheers

Paul

Blockings and deadlocks

$
0
0

We are getting many deadlocks, blockings ,long running queries continuously.Due to this our application and db are becoming slow.

Can you please suggest how to resolve this problem.



"Login failed. The login is from an untrusted domain and cannot be used with Windows authentication."

$
0
0

We have several computers accessing the sql server on a PC. When I try to connect it on one specific PC it gives this error:

"Login failed. The login is from an untrusted domain and cannot be used with Windows authentication."

..........but is working fine on other 10 PCs

 


Regards,
N_SQL
Unfortunate is he who cannot gain a few sincere friends during his life
...and more unfortunate is the one who has gained them and then lost them (through his deeds).

Current Recordset does not support updating

$
0
0

I get the following error when trying to delete a recordset from an SQL Server DB:

ADODB.Recordseterror '800a0cb3'<o:p></o:p>

Current Recordset does not support updating. This may be a limitation of the provider,
or of the selected locktype.
<o:p></o:p>

/sqlwishlist/Database2_interface/wishlists1/editor/deletionverified.asp,
line 33

The code is:

<BASEFONT FACE="Comic Sans MS" COLOR="DarkBlue">
<HTML>
<HEAD>
<TITLE>WISHLIST RECORD DELETION VERIFICATION</TITLE>
</HEAD>

<%
  Dim blnNew
    
      blnNew = False
 
 
Dim objConn, objRS
Dim qry, connectstr
Dim listid
listid = Session("localid")
tablename = "wishlists"

connectstr="Driver={SQL Server};SERVER=SSS.HHH;DATABASE=DB;UID=IDIDID;PWD=PWPWPW#;"

Set objConn = Server.CreateObject("ADODB.Connection")

objConn.Mode = adModeReadWrite

objConn.Open connectstr , adopenstatic, adLockOptimistic


Qry= "SELECT * FROM wishlists Where id = " & listid & ";"


Set objRS = objConn.Execute(qry)

 objRS.Delete
 
 objRS.close
 Set objRS = Nothing

%>

</html>

<o:p>The failure occurs at the delete command.</o:p>

<o:p>Web suggestions have been no help.</o:p>

<o:p></o:p>



windows server 2012 r2 with SQl server 2014 "Error: There was a problem sending the command to the program"

$
0
0

Friends,

I have "SQL server 2014 installed in windows server 2012 r2" when I tried to open any sql file I am getting the following error "there was a problem sending the command to the program".

I tried to do the setting in Registry (ssms.exe" "%1" /dde) but it's also failed.

please help me here.

Thanks

JK


EncryptByKey and VARBINARY Size Question

$
0
0

Hello,

I'm currently learning how to implement Encryption into my SQL database, and I've run into something I don't know how to explain or understand. I'm working on creating a set encryption for a set of columns in a database, and I don't know how to figure out what size the VARBINARY column needs to be. After some trial and error, I've noticed that a clear text of 9 characters needs 68 varbinary characters, 100 cleartext=148 varbinary, and 254 cleartext= 308 varbinary characters. How is the minimum number of varbinary characters calculated? 

Thanks,
Nic Bonzani

SQL db backups and i/o frozen events

$
0
0

Greetings

I am trying to find out where is the maintenance plan which is backing up SQL Dbs on its own at 12 am daily where as we didn;t scheduled maintenance plans at all

we see I/o frozen and resume events every day in event lo

Log Name:      Application
Source:        MSSQL$MSSQLSERVER2K8
Date:          5/4/2015 12:00:23 AM
Event ID:      3198
Task Category: Server
Level:         Information
Keywords:      Classic
User:          SYSTEM
Computer:     
Description:
I/O was resumed on database scrumstudycom. No user action is required.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="MSSQL$MSSQLSERVER2K8" />
    <EventID Qualifiers="16384">3198</EventID>
    <Level>4</Level>
    <Task>2</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2015-05-04T05:00:23.000000000Z" />
    <EventRecordID>10187352</EventRecordID>
    <Channel>Application</Channel>
    <Computer></Computer>
    <Security UserID="S-1-5-18" />
  </System>
  <EventData>
    <Data></Data>

  </EventData>
</Event>

Viewing all 9243 articles
Browse latest View live


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