Viewing 15 posts - 46,126 through 46,140 (of 49,571 total)
You're missing an END on the case
SELECT isnull([PAID],'NO') as [PAID] ,
CASE WHEN isnull(a.[Refill Sales ID],0) = 0 then 'No Refil'
ELSE...
June 24, 2008 at 1:21 am
Should be possible with a case statement. Something like this (partial code only)
SELECT ...
CASE WHEN [Refill ID] IS NULL
THEN 'No REFIL'
...
June 24, 2008 at 12:42 am
Could you post the entire error message please? The title gets cut short.
No backup? Why not?
June 24, 2008 at 12:36 am
Gone as in deleted from the operating system? how did that happen?
Do you have a recent backup?
How many log files did the database have?
Was the database detached cleanly from...
June 24, 2008 at 12:14 am
Download the 180 day demo of SQL server if you don't have access to a SQL server and get familiar with management studio. The only way you're going to pass...
June 24, 2008 at 12:13 am
Matt Miller (6/23/2008)
Gail - in 2005, if you knew it was going to recompile - would you FORCE the recompile on a given statement?
If I know absolutely, for...
June 24, 2008 at 12:04 am
Add to that a full backup after switching back into full recovery mode. After truncating log you have no point-in-time recovery untill you take a full/diff backup.
June 24, 2008 at 12:02 am
Manoj (6/23/2008)
That's perfact, I will do the same. If you can not able to do that then probably Last backup is the best one.
Actually the restore of last backup should...
June 24, 2008 at 12:00 am
Depends. I've seen some cases where the slightly less accurate plan was better than a recompile of the entire proc (SQL 2000). On 2005 with statement level recompiles, would probably...
June 23, 2008 at 10:35 am
Yup, though you can still get a stats-based recompile from the temp table, sometimes even more than once.
June 23, 2008 at 10:19 am
The main advantage I've seen for table vars is that they don't cause a stored proc to recompile.
As for number of rows, it depends what you're going to do...
June 23, 2008 at 9:51 am
Perhaps you could run profiler for a while and filter on the application name. I'm not sure 100% what appname reporting services uses, but it should be fairly easy to...
June 23, 2008 at 9:42 am
SQL doesn't have an equivalent to the Oracle RowID.
What are you trying to achieve?
June 23, 2008 at 9:02 am
And the process does exist? If you run sp_who2 <Spid> does ti return a row?
Are you sysadmin on that server?
Has the problem been around since the rebuild of the server...
June 23, 2008 at 8:06 am
Depends why it's suspect. Check though the error log, see if you can find an entry in the log saying that SQL is marking the database suspect. It should give...
June 23, 2008 at 6:42 am
Viewing 15 posts - 46,126 through 46,140 (of 49,571 total)