Viewing 15 posts - 1 through 15 (of 27 total)
Hi
Create a temporary table and insert records in to this table...
compare both the table and remove duplicates from the temporary table.
do insert from temporary table to your destination table.
thanks
jaypee.s
June 9, 2008 at 10:33 pm
Hi
select * from #test where val like '%/%%' ESCAPE '/'
Refer this link, if you want more clarification
http://msdn.microsoft.com/en-us/library/ms187489.aspx
Thanks
jaypee.s
June 6, 2008 at 12:02 am
hi
This link may be useful to you
http://www.singingeels.com/Articles/Pagination_In_SQL_Server_2005.aspx
Thanks
jaypee.s
June 2, 2008 at 5:51 am
Hi
Create a script with all constraints from SERVER A, where you have set of table.. and
create a linked server between these two servers (ie SERVER A and SERVER B).....
May 26, 2008 at 10:41 pm
Hi
It is better to maintain holiday table,with date and description.
Thanks
jaypee.s
May 25, 2008 at 10:30 pm
Hi
You can try like this. i guess it will solve your problem
select distinct a.* from INFORMATION_SCHEMA.COLUMNS a
where a.column_name not in (select column_name from INFORMATION_SCHEMA.COLUMNS b
where b.table_name in ('stp_rule_dtl') )...
May 22, 2008 at 11:00 pm
May 21, 2008 at 2:50 am
Hi
This may helpful to you...
CREATE TABLE #a
(month int,
year int,
teamnum int,
ext int,
avgholdtime int,
totsci int,
totalavgholdtime int )
INSERT INTO #a VALUES (2,2008,1,200,1000,20,0)
INSERT INTO #a VALUES (2,2008,1,300,2000,40,0)
INSERT INTO #a VALUES...
May 21, 2008 at 12:22 am
Hi
USe this as example... Create a trigger.
CREATE TABLE Customers
(FirstName varchar(30),
MiddleName varchar(10),
LastName varchar(25),
City varchar(10),
Country varchar(2),
CONSTRAINT PK_CustomerName PRIMARY KEY (FirstName,LastName))
CREATE trigger country_upper
ON customers
FOR INSERT, UPDATE
AS
update c
set c.country = UPPER(c.country)
FROM customers c
INNER...
May 21, 2008 at 12:01 am
Hi
Here the concept is to
SET IDENTITY INSERT ON and SET IDENTITY INSERT OFF
Please check the link, i guss it will solve you problem,
http://www.sqlteam.com/article/how-to-insert-values-into-an-identity-column-in-sql-server
Thanks
jaypee.s
May 19, 2008 at 11:44 pm
Hi
declare @i as varchar(25)
declare @sql as varchar(8000)
set @i =4
set @sql ='select top '+@i+' * from dbo.type_master'
exec(@sql)
May 16, 2008 at 5:21 am
Hi
Create a full database backup and restore in the new database.
Thanks
Jaypee.s
May 16, 2008 at 5:16 am
Hi
This link may be usefull.
http://www.sqlservercentral.com/Forums/Topic490100-359-1.aspx
Thanks
jaypee
May 16, 2008 at 4:21 am
Hi
i guess this will help you.
Use this as example
SELECT server as 'Server', [name] as 'Job Name', CONVERT(datetime, SUBSTRING(CAST(run_date as varchar(8)),1,4) + '-' + SUBSTRING(CAST(run_date as varchar(8)),5,2) + '-' +...
May 15, 2008 at 6:54 am
Hi.
Check this link.. u may get the solution
http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/Q_21443432.html
Thanks
jaypee
May 15, 2008 at 3:11 am
Viewing 15 posts - 1 through 15 (of 27 total)