Viewing 15 posts - 2,611 through 2,625 (of 5,103 total)
Correct!
I was just refering to the syntax error issue. Good point to keep in mind about the NOT NULL, You can overcome the issue by using ISNULL function
DECLARE @SqlCmd NVARCHAR(4000),
...
October 11, 2005 at 2:35 pm
Are you using AD ?
if Yes create a linked server and then interrogate it :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/distributed_query.asp
If no
Then run:
create table #t1 (data varchar(255))
insert into #t1 exec master..xp_cmdshell 'net user'
select --...
October 11, 2005 at 2:09 pm
OK all that's fine if you don't pass parameters. If you do you will need dynamic SQL because Linked server do not accept variables in their execution commands.
Cheers,
October 11, 2005 at 11:55 am
Erik,
Your SECOND ROLLBACK is always executed regardless of the path that the code took before!
I suggest you indent you code to get a better Idea of what's going on
Cheers,
October 11, 2005 at 11:52 am
if you have the Backup available and a spare system there is nothing preventing you from start that restore NOW!
That restore process is only as fast as the hardware...
October 11, 2005 at 11:46 am
When writing Dynamic SQL you have two choices to avoid those problems:
1) Do not break the string into several lines
2) If you must break it use explicit CRLF Terminator at...
October 11, 2005 at 11:11 am
If your backups are standard SQL Backups and you are not using third party tools the anwser "unfortunately" is NO, There is NO WAY.
Now, if you are using third party...
October 11, 2005 at 11:06 am
SQL Server 2000 does not store data in UTF-8. Mainly because it uses Windows collations for unicode data which are based in two bytes per character (UCS-2 and UTF-16)
For more...
October 11, 2005 at 8:42 am
Although the article is well written and many of us have used this sort of techniques in one way or another we should not be blinded by its drawbacks.
1.The use...
October 10, 2005 at 10:29 am
3) Into which System table does enteries are maintained of who have successfully logged IN and who were failed to Logged IN
You can create alerts for successful and...
October 7, 2005 at 2:31 pm
What does the following statement returns on the rebuilt Server?:
select serverproperty('Productlevel') lvl, serverproperty('ProductVersion') ver
October 7, 2005 at 2:01 pm
Just cast them explicitly to int. like:
if (Cast (@currentBid - @NewBid as int) % Cast(@bidincrement as int)) = 0
October 7, 2005 at 1:55 pm
Viewing 15 posts - 2,611 through 2,625 (of 5,103 total)