Viewing 15 posts - 181 through 195 (of 444 total)
Thanks for the reply.
You can connect directly to TFS from SQL Server Management Studio. It will allow you to create a solution and add scripts to it, check them in...
November 1, 2009 at 10:19 pm
Thanks for pointing out. But the issue is still handleable with Len() function and without using nvarchar.
Declare @v-2 varchar(100)
Declare @i int
Set @v-2 = ' ~ 1234 ...
November 1, 2009 at 10:06 pm
In SSMS,
Right Click Database --> Tasks --> Generate Scripts
October 30, 2009 at 4:31 am
Select * from TestServer.TableA
Except
Select * from ProductionServer.TableA
And
Select * from ProductionServer.TableA
Except
Select * from TestServer.TableA
October 30, 2009 at 4:20 am
If youare deleting all rows from the tables, Use Truncate command to accomplish your task.
OR
Try deleting in Batches.
This option is discussed in the following link.
October 30, 2009 at 3:58 am
For different DDL Statements (CREATE, DROP), Template Explorer in SSMS is the best place to get the idea and then BOL.
For scripts, it depends upon your needs. I personally have...
October 30, 2009 at 3:48 am
Duplicate post. Already answered this question in another post.
October 30, 2009 at 3:41 am
Glad it helped you.
October 30, 2009 at 3:40 am
declare @xml xml
set @xml = '<items><item id="1" ISDELETED="D"></item><item id="2" ISDELETED="D"></item><item id="3" ISDELETED="D"></item></items>'
Update MyTable
Set ISDELETED = B.ISDELETED
From MyTable A
Inner Join
(
select xmlcol.value('@id','int') as ID,
xmlcol.value ('@ISDELETED', 'char(1)') as IsDeleted
from @xml.nodes ('/items/item') tbl...
October 29, 2009 at 11:38 pm
The issue here is: I dont want to replace the original string
I am not replacing the Original string. I have used Len() function and in that Function I have...
October 29, 2009 at 10:38 pm
Hi mr_adeelalisyed,
The reference posted by you in
gives a slight hint of issue that you might be facing.
I think you are trying to execute
TransactionErrorAuditID, TransactionErrorAuditSequentia, ErrorCode, ErrorMessage
But...
October 29, 2009 at 10:20 pm
Already Posted a solution...
Declare @v-2 varchar(100)
Declare @i int
Set @v-2 = '12~12~~1234~13~~12~3~~'
Select @i = Len(@v) - Len(Replace(@v,'~',''))
Select @i
October 29, 2009 at 10:06 pm
Declare @v-2 varchar(100)
Declare @i int
Set @v-2 = '12~12~~1234~13~~12~3~~'
Select @i = Len(@v) - Len(Replace(@v,'~',''))
Select @i
October 29, 2009 at 10:03 pm
Simple Solution would be adding another column as Year and add 2009 / 2010 in that column and Define A composite Primary Key on Year Column and Demandid column.
July 20, 2009 at 1:26 am
Lost... Didn't read the question properly....
June 22, 2009 at 3:07 am
Viewing 15 posts - 181 through 195 (of 444 total)