Viewing 15 posts - 1,096 through 1,110 (of 1,155 total)
Have you started the endpoint? It may be in a state of disabled and therefore not able to respond to requests.
November 15, 2007 at 3:08 pm
This should do the trick. All you have to do is load some table variables with the name of tables you want created and the assoicated columns. This...
November 15, 2007 at 12:39 pm
Create a linked server and query the two like you would normally. A linked server requires a 4 part name though.
Server.Database.Table.Column
November 15, 2007 at 10:29 am
You could use this query to see if the backup finished properly and is not damaged.
select a.database_name,b.physical_device_name,is_damaged, backup_start_date, backup_finish_date
from msdb..backupset a
join msdb..backupmediafamily b on a.media_set_id=b.media_set_id
where database_name like 'AdventureWorks'...
November 15, 2007 at 10:18 am
Pivot Tables limit what you can do dynamically, but I have modified my original post to meet your specification of displaying the data and having the user put in a...
November 15, 2007 at 9:51 am
This method uses pivot tables:
/*
==========================
Expected Output
==========================
Jan Feb Mar Apr May
Hired 3 0 2 0 0
Terminated 0 1 0 1 0
# of Employees 3 3 4 4 3
*/
DECLARE...
November 14, 2007 at 8:07 am
Are you trying to convert PatientNo to an Int? It has letters in it, so you cant convert it to an integer.
This produces the same error:
declare @var1 nvarchar(10)
set @var1...
November 13, 2007 at 4:02 pm
Just as a note in SQL Server 2005 you have canned reports. One of which is "disk usage by top tables".
Just right click on the database --> reports -->...
November 13, 2007 at 3:45 pm
the other method is actually sp_executesql, which is better because it lets you reuse execution plans and has better parameter capabilities.
more info here:
November 13, 2007 at 3:05 pm
A table named cannot be named dynamically via variable unless you use exec or sql_execute
November 13, 2007 at 2:58 pm
November 13, 2007 at 2:56 pm
You could try to do a simple convert, like such:
SELECT count(CONVERT(smallmoney,cost))
November 13, 2007 at 2:49 pm
nabaj,
char(13) = carriage return
char(10) = line feed
This basically like hitting the enter key to create a new line or a line break.
November 13, 2007 at 10:48 am
Matt,
In the begining of the post we made some modifications to Jason's script to meet the users needs. We changed:
SELECT *
FROM ...
November 13, 2007 at 10:41 am
Viewing 15 posts - 1,096 through 1,110 (of 1,155 total)