Viewing 15 posts - 31 through 45 (of 57 total)
CREATE TABLE [dbo].[BldgA](
[CX] [nvarchar](255) NULL,
[Point] [nvarchar](255) NULL,
[Link] [nvarchar](255) NULL
)
sample data:
BldgA G1.EngCoolTemp G1.EngCoolTemp.C1.GenLoCoolT
I want to change it to look like this:
BldgA G1.EngCoolTemp C1.GenLoCoolT
Script for...
April 17, 2011 at 7:10 pm
I am doing database backup already. But I need to do server backup (image the drives)?
January 19, 2011 at 3:13 pm
I want to back the whole system. Similar to imaging the Hard disk. I know I can use Norton ghost, as an example, to image workstations. But what software to...
January 19, 2011 at 2:58 pm
Yes. You are right.
January 12, 2011 at 11:45 am
Thanks for the feedback. I have adapted your solution, and it works great. This the query I am using now.
use Datbase1
go
DECLARE @Table NVARCHAR(200),@Column NVARCHAR(200),@Sql NVARCHAR(2000)
DECLARE Table_Cursor CURSOR FOR
SELECT so.Name AS...
January 12, 2011 at 11:11 am
if not exists
(select date_stamp from myTable Where date_stamp = '1-4-2011')
Begin
print 'myTable'
End
Now I need to figure...
January 5, 2011 at 2:10 pm
I used your suggestion which is an implementation to "CELKO's" idea.
I created a table called cal with a "date_stamp" colum. This is going to be the calendar table that I...
January 5, 2011 at 1:35 pm
Just the date . Like '12-31-2010'.
Compare few months (full year) worth of data (one row for each day).
December 31, 2010 at 2:00 pm
I solved it.
Right click on Server Server Agent. Select "properties". Go to connection. Under "Alias local host server" I deleted whatever was there (I had server name there, which is...
December 22, 2010 at 8:25 am
Date,Source,Severity,Message
12/22/2010 09:19:24,,Information,[098] SQLServerAgent terminated (normally)
12/22/2010 09:19:24,,Error,[382] Logon to server 'EnergyData1' failed (DisableAgentXPs)
12/22/2010 09:19:24,,Error,[298] SQLServer Error: 5<c/> A network-related or instance-specific error has occurred while establishing a connection to SQL Server....
December 22, 2010 at 7:23 am
Removed isnull(Pk_Dmnd_On,0).
Good point..
Thanks
December 21, 2010 at 11:28 am
Thanks for the feedback..
1. I did not know about COALESCE. I looked it up, and it looks like it's a powerfull command that I can utilize.
2. Yes, I could use...
December 21, 2010 at 10:49 am
Sean, I agree, The code was repeating itself.. not good.
The variables are being passed from an "ASP" page. The stored procedure is under the database in SQL server.
Here is...
December 21, 2010 at 10:05 am
Yes this procedure already exists.
Thanks
December 17, 2010 at 1:46 pm
Viewing 15 posts - 31 through 45 (of 57 total)