Viewing 15 posts - 11,026 through 11,040 (of 15,376 total)
morepainot (8/8/2012)
Sean Lange (8/8/2012)
morepainot (8/8/2012)
August 8, 2012 at 3:07 pm
morepainot (8/8/2012)
August 8, 2012 at 2:56 pm
thall 8753 (8/8/2012)
Also,I was using Firefox 14.01 while trying to post a code block...
Using IE 8 seems to work just fine.
Select * from test
There seems to be no real rhyme...
August 8, 2012 at 2:55 pm
thall 8753 (8/8/2012)
First, I would like to thank you for taking the time to answer my post.
I have attached expected output in an excel spreadsheet. In the expected tab, I...
August 8, 2012 at 2:54 pm
morepainot (8/8/2012)
Oh man...I meant to add in my error message :doze:Incorrect syntax near '('
No offense but that doesn't exactly help. Try adding a print command before you execute your dynamic...
August 8, 2012 at 2:33 pm
joshphillips7145 (8/8/2012)
The event that should cause it to rollback would be finding a duplicate entry right?
Have you used the debug code I posted several posts ago and keep asking if...
August 8, 2012 at 2:32 pm
morepainot (8/8/2012)
BEGIN
SET @nSQL = '
IF NOT EXISTS (SELECT * FROM '+ @SourceDatabaseName + ' .INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_SCHEMA = ''dbo'' AND
TABLE_NAME...
August 8, 2012 at 2:29 pm
I would suggest a single script with a go between each batch. It is far less prone to error than using a whole bunch of files and trying to remember...
August 8, 2012 at 2:09 pm
You're welcome. The problem is you can't use variables in object names like you were doing. Glad that worked for you.
August 8, 2012 at 1:37 pm
Lynn Pettis (8/8/2012)
August 8, 2012 at 1:36 pm
joshphillips7145 (8/8/2012)
August 8, 2012 at 1:34 pm
One thing I would recommend is that you should ALWAYS specify the length of your character data. If you don't it will assume the default length. Do you know what...
August 8, 2012 at 1:31 pm
thall 8753 (8/8/2012)
3rd -7th columns refer to tools that lots are processed through, in that order.
I need to be able to fill in the child's...
August 8, 2012 at 1:11 pm
scottichrosaviakosmos (8/8/2012)
insert into #abc
select 1,10,11,'A','B'
union
select 1,11,12,'B','C'
union
select 1,12,13,'C','D'
union
select 2,10,11,'A','B'
union
select 2,11,13,'B','D'
union
select 2,12,11,'C','A'
Output:
Insertid Cityid Parentid ...
August 8, 2012 at 1:06 pm
I took the liberty of using an online sql formatter to make this a bit easier to read:
DECLARE @DB_NAME VARCHAR(200)
DECLARE @SQL2 VARCHAR(MAX)
DECLARE DB_CUR1 CURSOR
FOR
SELECT [NAME]
FROM dbo.sysdatabases
WHERE (dbid > 4)
AND STATUS...
August 8, 2012 at 1:00 pm
Viewing 15 posts - 11,026 through 11,040 (of 15,376 total)