Viewing 15 posts - 47,641 through 47,655 (of 59,099 total)
I don't know if the Express edition has OSQL... but if it does, it falls under the same rules... you must install the entire product... not just OSQL.exe.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2008 at 9:15 pm
The_SQL_DBA (10/23/2008)
Do not run DBCC SHRINKDATABASE on a PRODUCTION database :w00t:, especially when it is ONLINE.
Heh... wanna tell us why not? 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2008 at 9:09 pm
Heh... no... if I posted the questions here, they'd be no better than certification exams. Sorry.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2008 at 8:56 pm
balv (10/23/2008)
Thanks Seth & Jerry,The second option works better for me.
Balv
How does it work better for you? Why?
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2008 at 8:53 pm
Thank Goodness, NO! CLR's are bad enough! 😛
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2008 at 8:44 pm
I absolutely agree... in fact, I agree so much, that I wrote an article about it.
Please see the link in my signature for how to properly pose a problem on...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2008 at 8:43 pm
I'd be much more interesting in knowing what it is that "Task.exe" does and why you think it can't be done in T-SQL, whatever it is. 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2008 at 8:34 pm
CHAR(3)? Do you mean CHAR(13)? 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2008 at 8:33 pm
Mike Gray (10/23/2008)
I ran the code that Jerry postedDELETE PW -- COUNT(1)
FROM performance_esx3_workload PW
INNER JOIN performance_sample PS
WHERE PW.sample_id = PS.id
AND PS.sample_time < '2008-07-01'
You...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2008 at 8:29 pm
Really? Try this and see if ISNUMERIC is actually what you want...
SELECT ISNUMERIC('3D2'), ISNUMERIC('3E2')
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2008 at 8:25 pm
rishgup (10/23/2008)
There is no indexing on tables. And I want to...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2008 at 8:17 pm
Nikhil Shikarkhane (10/23/2008)
@tablename is a local table variable.
No it's not... it's the name of a database... and it's @DBName... 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2008 at 8:05 pm
JohnDBA (10/23/2008)
I have this values that I need to count based on condition.
- If the value is between 10 and 15 and the code is = a...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2008 at 8:02 pm
Nikhil Shikarkhane (10/23/2008)
Hint: You will have to use ROW_NUMBER OVER ( PARTITION BY ) 🙂
I'd really like to see that for this one. Got code? 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2008 at 8:00 pm
... sorry.... and to answer the other question, I never do a shrink on the database unless some runaway code happened to occur. Database growth should be planned and...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2008 at 7:53 pm
Viewing 15 posts - 47,641 through 47,655 (of 59,099 total)