Viewing 15 posts - 226 through 240 (of 1,065 total)
"Driver={SQL Server};Server=SERVER-FQDN\SQLINSTANCE;Database=DN_NAME;Username=VALIDUSERNAME;Password=PASSWORD;"
Check out this link http://www.connectionstrings.com/sql-server-2005
It's possible that the username keyword in your connection string is invalid, and SQL Server is therefore defaulting to a trusted connection.
February 9, 2011 at 10:35 am
I couldn't give you the exact string, but using a Regular Expression in the find and replace should get you over the issues of white space/CRLF characters etc. Still not...
February 9, 2011 at 4:43 am
The error message would indicate that you are connecting using a trusted connection, not a SQL logon. Can you post the connection string the application is using?
Can you login with...
February 9, 2011 at 1:19 am
This sounds very much like the issue SQL Server 2000 had with not reclaiming space for tables with text/image columns.
The only solution I found to that problem was to add...
February 8, 2011 at 8:31 am
First of all, why are you writing a dynamic procedure for this?
The standard INSERT statement allows for nulls anyway, so the procedure could just be a single line:-
INSERT AccountAO_Receive...
February 7, 2011 at 5:00 am
You are correct in your assumption that SQL Server is doing what it should.
Have a look at this link http://msdn.microsoft.com/en-us/library/ms175464.aspx
Just under the first diagram, you will find the explanation you...
February 4, 2011 at 2:33 am
There is a way to do this without downtime for SQL Server.
1. Backup the master database
2. Restore the backup file as a differently named database
3. Detach this database
You now have...
February 3, 2011 at 7:21 am
mister.magoo (2/3/2011)
Hi, did you try this?
IF TRIGGER_NESTLEVEL()>1 RETURN
A bit less risky, but could still suffer from similar problems to @@NESTLEVEL if the trigger is ultimately fired as a result of...
February 3, 2011 at 3:30 am
I think Steve was trying to tell you that the BEGIN TRANSACTION is not necessary at all. Once you are inside the trigger, you are automatically inside a transaction anyway.
I'm...
February 3, 2011 at 1:43 am
I assume the integer should represent the number of seconds since midnight. There may be more elegant ways, but this should do it:-
SELECT DATEDIFF(S, CONVERT(DATETIME,CONVERT(CHAR(11),GETDATE())), GETDATE())
February 2, 2011 at 3:36 am
All the Is_For_Replication setting does is to tell SQL Server that, if the update to the table has come via replication, then it should carry out the constraint checking just...
February 1, 2011 at 3:35 am
GilaMonster (12/23/2010)
To check for entire table, similar thing, but check and see if count(*) from deleted = count(*) from base table
Sounds a bit risky to me... what if another row...
December 23, 2010 at 7:11 am
What is your definition of a working day? Does this exclude public holidays as well as weekends?
If so, a date table will be the simplest solution, keyed on date, specifying...
October 25, 2010 at 5:01 am
In this table multiple user inserts the data simulatenously so because of Indetity column it may create Primary key violation error.
What makes you say this?
Having an identity...
October 21, 2010 at 1:54 am
It returns 70 because of this... declare @txt_value nvarchar(100)
You have declared your variable as nvarchar, which is unicode, and uses up 2 bytes of storage for every character in the...
July 23, 2010 at 6:09 am
Viewing 15 posts - 226 through 240 (of 1,065 total)