Viewing 15 posts - 2,071 through 2,085 (of 5,394 total)
Eric Hu²º¹² (1/17/2012)
you can use 'CURSOR' to Solve this problem.
Obviously you can, but I would never recommend it, unless proven to be the only possible solution.
Set-based code outperforms cursors...
January 18, 2012 at 1:56 am
Eric Hu²º¹² (1/17/2012)
It is obvious syntax error.you can use Top 1...
That would update a single row. I'm not sure this is what the OP is after.
January 18, 2012 at 1:54 am
Try this:
ALTER TRIGGER [dbo].[Calculation] ON [dbo].[Customer]
AFTER INSERT
AS
BEGIN
-- Don't forget this line, or applications may break
SET NOCOUNT ON;
UPDATE CUST
SET Percentage = dbo.GetPercentage(INSERTED.Value)
FROM Customer CUST
INNER JOIN INSERTED
ON...
January 18, 2012 at 1:52 am
Google is your friend:
January 18, 2012 at 1:46 am
anilr71 (1/18/2012)
one database i have one table is there.
in that table 200 rows are there
so my question is
1to 100 the rows data will be store in one table and...
January 18, 2012 at 1:42 am
anilr71 (1/18/2012)
ms db crash
What do you mean with "crash"? Database is suspect? The instance does not start? You found corruption with CHECKDB?
In order to restore the database you can issue...
January 18, 2012 at 1:37 am
There is no way to back up a single table.
You could take a "logical backup" exporting the data to a flat file using BCP or SSIS, but it's a whole...
January 18, 2012 at 1:35 am
If you turn it ON, you can send mail from SQL Server.
If you leave it OFF, you can't.
😛
No seriously, it's a very vague question. Is there anything in particular you...
January 17, 2012 at 6:52 am
Pivot? Yup.
DECLARE @Table1 TABLE (
Call_Id int NOT NULL,
Call_Description nvarchar(50),
Call_Other_Details nvarchar(50)
)
INSERT INTO @Table1 VALUES(1, 'Test call', 'xxx')
DECLARE @Table2 TABLE (
Call_Id int NOT NULL,
Call_Status nvarchar(50),
Other_Details nvarchar(50)
)
INSERT INTO @Table2 VALUES(1, 'Response...
January 17, 2012 at 6:39 am
Not that I'm aware of.
Snapshot publications take a "photograph" of the data in the publication at a given time. There is no way AFAIK to apply changes to the snapshots...
January 17, 2012 at 6:17 am
cengland0 (1/16/2012)
Perhaps the Wikipedia article made it appear more confusing than it really is.
I agree. I got it wrong BTW...
January 17, 2012 at 3:34 am
Jeff Moden (1/16/2012)
Adi Cohn-120898 (1/16/2012)
January 17, 2012 at 2:26 am
Jeff Moden (1/16/2012)
I'll reserve my opinion on this but thought I'd give everyone a heads up...http://wikimediafoundation.org/wiki/English_Wikipedia_anti-SOPA_blackout
Why reserve your opinion?
I'm sure that lots of people here (including myself) would love...
January 17, 2012 at 2:18 am
Revenant (1/16/2012)
Gianluca Sartori (1/16/2012)
SQL Kiwi (1/16/2012)
Gianluca Sartori (1/16/2012)
January 17, 2012 at 2:17 am
Viewing 15 posts - 2,071 through 2,085 (of 5,394 total)