Viewing 15 posts - 151 through 165 (of 443 total)
There's already a far easier way to do this with EXEC.
EXEC('PRINT 4+5*6-3' )
or
EXEC('SELECT 4+5*6-3' )
December 15, 2010 at 5:08 am
Nice little eye opener Jeff, thanks.
I particularly like :
...formatting data in SQL Server is your basic "Bozo-no-no"
Can I quote that the next time I see another question like:
"How...
December 15, 2010 at 2:19 am
Your problem may be this bit of the where clause
(@Service = '<No Selection>')
Now that @Service is multi-value, I think you will need to do something different here.
(sorry can't work out...
December 14, 2010 at 7:58 am
samehzagloul (12/9/2010)
The problem is that the join in the query is wrong where it joins on the xtype column of systypes it should use xusertype instead.
[font="Courier New"]Did you try the...
December 10, 2010 at 2:29 am
samehzagloul (12/9/2010)
The problem is that the join in the query is wrong where it joins on the xtype column of systypes it should use xusertype instead.
[font="Courier New"]Did you try the...
December 10, 2010 at 2:24 am
No they're not columns, they're types, user defined types.
In the Object Explorer window in SSMS.
Open Programmability->Types->User Defined Types
and you'll see them.
The problem is that the join in the query is...
December 9, 2010 at 8:40 am
December 7, 2010 at 3:55 am
Good question, thanks.
Further info on size limits can be found here
December 7, 2010 at 2:36 am
Nice Jeff, very nice indeed.
Now, all I need is to find somewhere I can use this 🙂
December 7, 2010 at 2:05 am
archana.singh 38798 (11/23/2010)
This will surely work :select * from sysobjects where name like '#testvm%'
No, because it will also return tables called '#testvm_something' etc. as was explained earlier
November 24, 2010 at 1:51 am
mbova407 (11/22/2010)
Correct sql is
select * from tempdb..sysobjects where name like '%#testvm%'
Not quite.
It was mentioned in an earlier post that using LIKE and wildcards may return more than one record...
November 22, 2010 at 7:27 am
As Lynn implied, SQL is not the place to to this.
The correct way to format the data is to do it in your PHP page, and there should be no...
November 18, 2010 at 6:22 am
MiguelSQL (11/16/2010)
There are many ways to skin a cat:
Indeed there are 🙂
This is my way:
select crdate,[Name] from sys.sysdatabases where name = 'tempdb'
Why does this work?
Well... every time you MSSQL Starts,...
November 17, 2010 at 2:03 am
Alternatively:
SELECT TOP 1 login_time FROM master..sysprocesses (NOLOCK)
ORDER BY login_time
Since I've noticed that on some of our SQL servers spid 1 is not the longest running process!
How, I don't know!...
November 16, 2010 at 5:11 am
The casts may be the cause, but can't tell without smple data.
What are the values for MonthPop in each of the tables?
November 1, 2010 at 10:52 am
Viewing 15 posts - 151 through 165 (of 443 total)