Viewing 15 posts - 541 through 555 (of 1,156 total)
If modifying the sp is plausible, then you can alter the statement where the sp prints the error message to a select.
example if the sp is printing a message then...
February 27, 2008 at 7:47 am
I think I know what the problem is. The stored procedure is printing the message to the screen and not returning a result set. Is this accurate?
If so,...
February 27, 2008 at 7:37 am
I found a function that may be more along the lines of what you are looking for. This function requires two inputs and the number of words you would...
February 27, 2008 at 7:32 am
mischif,
You should change the nonclustered index to clustered, per Jeff's recommendation. This way you ensure that everything is sorted correctly.
February 27, 2008 at 5:41 am
Thanks for pointing that out. It makes sense as the clustered index actually affects the sorting of the data.
In this case, the sorting of the data is...
February 26, 2008 at 7:23 pm
I had a little different approach. Either way.
declare @startdate datetime,
@enddate datetime,
@sec int
set @StartDate = '2008-02-26 01:40:08.000'
set @EndDate = '2008-02-26 01:49:21.000'
set @sec = datediff(s,@startdate,@enddate)
select
floor(@sec/60)-floor(@sec/60/60)*60 as Minutes...
February 26, 2008 at 5:57 pm
cdun,
Todd's solution will do the trick.
Providing table ddl and sample data goes a long way in receiving a quality solution. Todd had to take extra steps to figure out...
February 26, 2008 at 5:40 pm
I tried this before that doesn't work.
This does work and is the standard for dumping sp data into tables. What error message do you recieve. Below is...
February 26, 2008 at 5:27 pm
Just saw your post. This is going to require a little more thought than an order by. Let me look at it more.
February 26, 2008 at 4:05 pm
The easiest way is to order by cout desc and grab the first record, as Todd mentioned. I would stick with this method.
February 26, 2008 at 4:02 pm
You need to do something like this:
create table #t (
id int identity(1,1),
[text] varchar(500)
)
insert into #t ([text])
EXEC master..xp_restore_verifyonly @filename='C:\Backup\MyDB.lsb'
February 26, 2008 at 3:09 pm
You have to make the remote server a linked server. You can expand the server objecsts folder in SSMS and add a new linked server.
You have to use...
February 26, 2008 at 1:00 pm
One way to view if a database is currently using Full Text Search is to open SSMS -> Expand databases --> expand the database --> expand storage --> expand full...
February 26, 2008 at 12:54 pm
Are you trying to run a query or output the query results to a file?
February 26, 2008 at 12:31 pm
The database maintenance wizard can take care of backups (overwrite) and database shrinking, but cannot truncate a table.
You have to create a job that does each step (Backup...
February 26, 2008 at 11:55 am
Viewing 15 posts - 541 through 555 (of 1,156 total)