Viewing 15 posts - 3,091 through 3,105 (of 6,036 total)
You should pray very hard not to let Jean Claude Van Damme or any of his relations to be registered in you system.
People with French, Dutch, Spanish and Portuguese descent...
April 25, 2008 at 8:17 pm
You may query SQL server directly from Excel.
Of course you need to have access to that instance of SQL Server from the machine there you open Excel.
April 24, 2008 at 4:08 pm
If your code looks complex that it's not correct.
Make it simple and it will work:
select @ret = COALESCE(I4.ID, I3.ID, I2.ID, I1.ID, 0)
from Org o
LEFT JOIN org_lvl4 l4 on l4.Lvl4...
April 24, 2008 at 8:32 am
halifaxdal (4/24/2008)
That's not the problem
Are you sure?
You may have different ANSI_NULL settings for function and for batch in QA.
April 24, 2008 at 7:45 am
<> null
does not work.
Replace it with IS NOT NULL
April 23, 2008 at 3:44 pm
Will not work from user databases.
Should be
EXEC master..xp_cmdshell 'Dir C:\*.*'
April 23, 2008 at 3:02 am
There is a whole bulk of topics under "cursors" chapter in BOL.
There are plenty of suggestions, instructions, recommendations and fabulous examples.
Take some time to read it.
If you don't know how...
April 22, 2008 at 8:11 pm
EdVassie (4/22/2008)
Apart from the datetime formatting capabilities of CONVERT, CAST and CONVERT do identical jobs.
Not quite true.
Conversions of float, real, money, or smallmoney to character data types also use styles.
Check...
April 22, 2008 at 7:04 pm
Superchick (10/30/2006)
I am new to SQL 2005. And I am doing a straigth select from a table.
You're doing select into where?
There must be type mismatch between source and destination.
April 22, 2008 at 4:24 pm
I believe the simplest way would be padding numeric values with spaces to make them all equal in length.
Functiuon STR would be helkpful for this.
Check BOL for options of this...
April 20, 2008 at 5:33 pm
You need to pass @rowcount as na OUTPUT parameter to sp_executesql.
April 17, 2008 at 11:51 pm
[Quote]Since it's only a one time update...[/Quote]
Don't be fooled with such promises.
It never happens.
Don't those other tables get updated time to time?
You gonna need to update that "main" table with...
April 15, 2008 at 8:16 pm
[Quote]there are no PK's to join on[/Quote]
So, the is no relational database really...
And because of this database tools are not applicable.
All you've got is set of flat files (don't be...
April 15, 2008 at 7:24 pm
Would not it be easier to just generate a script creating empty database?
April 14, 2008 at 4:59 pm
RyanRandall (4/14/2008)
This will go wrong for values with trailing spaces.
Using DATALENGTH rather then LEN will fix this 🙂
Datalength depends on datatype - varchar or nvarchar.
You need to convert value to...
April 14, 2008 at 4:35 pm
Viewing 15 posts - 3,091 through 3,105 (of 6,036 total)