Viewing 15 posts - 121 through 135 (of 153 total)
hi,
Look into the following link for the function mentioned above
http://www.sqlservercentral.com/Forums/Topic900359-338-1.aspx#bm900398
April 15, 2010 at 11:57 pm
hi,
The @rid is taking the multi values by comma seperated....
ex: 12,45,24,3,78 ..
So the datatype int only takes single value of int only...it doesnot allow the above value...
For that change the...
April 15, 2010 at 11:49 pm
hi,
Use DBCC SHRINK command....
http://support.microsoft.com/kb/873235
regards,
Sasidhar Chowdary
Recognition is the greatest motivator.
April 15, 2010 at 10:38 pm
For the above scenario...U should use the loop [Cursor /Temp table/tbl variable] take the each row individually insert into new table if the SUM is below the Variable amount u...
April 14, 2010 at 7:43 am
Select Cust,MAX(OrderDate) Maxdate,MAX(SeqNo) MaxSQno
from tblname group by Cust
April 14, 2010 at 7:33 am
hi,
Why dont you write scrpts or Packages for importing data into Ur local machine....
or
Go for replication.....
U r looking into LInked servers only....
sp_addlinkedserver
http://msdn.microsoft.com/en-us/library/ms188279.aspx
http://msdn.microsoft.com/en-us/library/ms190479.aspx
http://www.quackit.com/sql_server/sql_server_2008/tutorial/linked_servers.cfm
cheers!
Sasidhar Chowdary
April 14, 2010 at 5:36 am
I have to do it from SSMS only.....
Creating new job in SQL jobs....The job should send mail that error log info...or successfull info....as attachment
April 14, 2010 at 3:29 am
hi,
SELECT owname,CASE WHEN age>4 Then PetCount else 0 END as PtCoun from
( SELECT O.owname,O.owner_id,age, COUNT(Pet_id) PetCOunt from owners O LEFT JOIN pets P on O.owner_id=P.owner_id
GROUP BY O.owname,O.owner_id,age)A
or...
April 13, 2010 at 6:06 am
hi,
Use msdb.dbo.sp_send_dbmail...
or
see the link given below...
April 13, 2010 at 5:33 am
We can execute from SQLCMD
try with links given below...
http://www.sqlservercentral.com/Forums/Topic411075-145-1.aspx
April 13, 2010 at 4:44 am
hi,
Is it possible to run from CMD prompt.....
if possible we can execute the commands...the authentication mode is set to Mixed mode....
& Then restart the server.....
Correct me if i am wrong......:discuss:
April 13, 2010 at 4:24 am
SET IDENTITY_INSERT [ database. [ owner. ] ] { table } { ON | OFF }
SET IDENTITY_INSERT tablename ON
SET IDENTITY_INSERT tablename OFF
🙂
April 13, 2010 at 2:55 am
hi,
I think the following will give help u .....
http://www.sqlservercentral.com/articles/Administration/listofdatabaseuserswithdatabaseroles/1545/
cheers!:-)
Sasidhar Chowdary
April 13, 2010 at 1:18 am
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE function [dbo].[Test_GetOrderTable] (@string varchar(max))
returns @tblOrder Table(id int identity(1,1),strings varchar(100))
AS
begin
declare @LocalVar varchar(100)
declare @pos int
set @pos=1
set @LocalVar=''
set @string = ltrim(rtrim(@string))
while (@pos <=len(@string))
...
April 13, 2010 at 1:12 am
(billtoaddress1, 'PTE I', 'PT')
replace(billtoaddress1, 'POINTE', 'PT')
replace(billtoaddress1, 'PT #I', 'PT')
replace(billtoaddress1, 'PTE II', 'PT')
replace(billtoaddress1, 'PT # II', 'PT')
replace(billtoaddress1, 'PTE III', 'PT')
replace(billtoaddress1, 'PT #...
April 12, 2010 at 6:43 am
Viewing 15 posts - 121 through 135 (of 153 total)