Viewing 15 posts - 226 through 240 (of 285 total)
Maria Smith (8/11/2009)
August 13, 2009 at 9:50 am
Hi,
sp_who2 is useful for blocking. it will show which SPID is blocked by whom.
Then you can use DBCC INPUTBUFFER (SPID ID) to see what the SPID is actually doing i.e...
August 13, 2009 at 9:11 am
rambilla4 (7/2/2009)
I got one orphand user in one database as below:
UserName UserSID
John 0x3922A096AD89EB49B6BA68362BFDA1B6
Could you please...
July 3, 2009 at 1:16 pm
Hi,
Try this:
set the o/p mode to text in SSMS .. then run the following .....
SELECT 'ALTER SCHEMA Employee TRANSFER ' + TABLE_SCHEMA + '.' + TABLE_NAME
FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA...
July 3, 2009 at 12:23 pm
phbianchi (7/1/2009)
I was having the same problem, and your suggestion solved it! Thanks!!!
Glad it helped you !
July 1, 2009 at 6:20 pm
HI All,
I appreciate all your efforts. The problem is resolved as I granted Windows authentication to the user.
Thanks for all your effort,
\\K 🙂
PS: Steve this is the best site where...
June 26, 2009 at 10:48 am
MANU (6/25/2009)
June 25, 2009 at 2:00 pm
Carl Federl (6/25/2009)
When new rows for case_feed = '7' then:
The next sequence should begin...
June 25, 2009 at 11:28 am
Paul White (6/25/2009)
ALTER TRIGGER trg_cnsmr_accnt_ai
ON dbo.cnsmr_accnt
AFTER INSERT
AS
BEGIN
IF@@ROWCOUNT = 0 RETURN;
SET NOCOUNT ON;
SET ROWCOUNT 0;
;WITHOrdered AS
(
SELECTcnsmr_id,
cnsmr_id + '-' + CONVERT(VARCHAR(10), 100...
June 25, 2009 at 11:19 am
MANU (6/24/2009)
ALTER SCHEMA
siteadmin —Target Schema
TRANSFER
dbo.testTable –Object to be transferred
Please ensure that you have scripted all the permission of original object before transferring to...
June 24, 2009 at 6:58 pm
Hi Carl,
Thanks for the info. I really need to get on T-SQL to understand and effectively use it.
So if there is a duplicate key violation, you do not get a...
June 24, 2009 at 1:22 pm
Hi Carl,
Thanks for your help. You are right that the code when put in trigger will not work.
I cannot understand the use of Instead of trigger as opposed to for/after...
June 24, 2009 at 12:54 pm
WayneS (6/24/2009)
It inserts about 2000 rows into your table, then selects everything.
insert into cnsmr_accnt
select CONVERT(varchar(5), 22...
June 24, 2009 at 11:19 am
Carl Federl (6/24/2009)
Can you post the create table statement please ?http://www.sqlservercentral.com/articles/Best+Practices/61537/
Hi,
below is the code to create table and some sample data.
CREATE TABLE cnsmr_accnt (
[cnsmr_id] VARCHAR (50) NOT NULL,
[cnsmr_accnt_id] VARCHAR...
June 24, 2009 at 10:18 am
Viewing 15 posts - 226 through 240 (of 285 total)