Viewing 15 posts - 4,411 through 4,425 (of 13,469 total)
create a temp table,and change the query to insert something into the table instead of a simple select...maybe the table name and the column name or something...or a PK...
you can...
November 13, 2012 at 12:42 pm
the next part, the find and replace gets ugly very quickly.
is it possible that more than one number appears int eh memo field? ie two or three 1/17 digit numbers?
is...
November 13, 2012 at 12:39 pm
if you know it's a single table, it's going to look something like this:
you can use the pattern matching , regular expression style of the LIKE statement:
SELECT *
FROM YOURTABLE
WHERE...
November 13, 2012 at 12:28 pm
instead of dropping and recreating, it would be a lot easier to simply rename the existing constraints instead. sp_rename takes any object name that exists in sys.objects , not just...
November 13, 2012 at 11:29 am
edward_hall76 (11/13/2012)
November 13, 2012 at 9:33 am
the issue here is GUI dependancy;
you've got to get used to using the TSQL window for your commands, instead of using the GUI tools.
if you right click on a...
November 13, 2012 at 9:03 am
duplicate post.
no need to cross post to multiple forums; it fractures the answers you get and makes posters duplicate others work.
the "Recent Posts" link shows us everything.
continue the thread here:
November 13, 2012 at 7:47 am
Tava (11/12/2012)
briancampbellmcad (11/12/2012)
I ran the code above and now have a SQL...
November 13, 2012 at 5:12 am
ok, let me twist the question around on you...
why can't you update all the rows at the same time, where WIN is null, and ts_started is less than an hour,...
November 12, 2012 at 2:34 pm
looked a little deeper, this is a syntactically correct version that only inserts the rows that have INSERTED.Transaction_Type = 'From Bulk Assignment'
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER TRIGGER [dbo].[trPopulateJournalEntries]
ON [dbo].[tblTransactions]
AFTER INSERT
AS
BEGIN
...
November 12, 2012 at 2:10 pm
it would be simple concatenation;
if the types happen to be integers, you might need to convert them to varchars:
INSERT INTO tblSWJournal
(tblSWJournal.Ledger,
tblBulkPurchases.Amt)
SELECT
CONVERT(varchar(30),INSERTED.HeatTicketNumber)
+ ':'
+ CONVERT(VARCHAR(30),INSERTED.PO_Number),
INSERTED.Unit_Price
FROM INSERTED
November 12, 2012 at 1:56 pm
well i cannot get a prototype to work;
this is the code i used for testing; i don't get any errors in the trigger, and a rollback command works fine, but...
November 12, 2012 at 11:47 am
Steve Jones - SSC Editor (11/12/2012)
November 12, 2012 at 11:16 am
zulmanclock (11/12/2012)
November 12, 2012 at 10:02 am
I don't believe you can redirect the connection to another database... essentially the connection asks for login info/permissions only
yes maybe with an initial database gets passed in with the credentials,...
November 12, 2012 at 9:41 am
Viewing 15 posts - 4,411 through 4,425 (of 13,469 total)