Viewing 15 posts - 10,321 through 10,335 (of 15,381 total)
jbalbo (10/19/2012)
INSERT INTO @TEMPTABLE(TAG_NAME,TAG_DATA)
SELECT DISTINCT TAG_NAME = 'CUST_ALLFOOD', TAG_DATA =(M.GENERIC_NAME + CONVERT(VARCHAR(MAX),ca.Notes)
INNER JOIN CLIENT_ALLERGY CA (NOLOCK) ON C.OID_LINK =...
October 19, 2012 at 8:40 am
There is nowhere near enough information to be able to help here. Please see the first link in my signature about best practices when posting questions.
October 19, 2012 at 8:15 am
Nice job posting ddl and sample data. Unfortunately it is very unclear what you are trying to do. Can you explain how you came up with the values that you...
October 19, 2012 at 8:11 am
briancampbellmcad (10/19/2012)
CREATE TRIGGER [dbo].[trDecrementBulkPurchases]
ON [dbo].[tblTransactions]
AFTER INSERT
AS
BEGIN
UPDATE...
October 19, 2012 at 7:42 am
gowri.4ever (10/18/2012)
October 18, 2012 at 2:28 pm
gowri.4ever (10/18/2012)
I want to check if they have same column names and if their data type is same
So run the query I posted. It will show you that information and...
October 18, 2012 at 12:38 pm
gowri.4ever (10/18/2012)
I cannot use the redgate and all...what i was asked to do is to copy all the tables in a database into a temp table and then do the...
October 18, 2012 at 12:32 pm
gowri.4ever (10/18/2012)
I need to check if all the tables in a database are same(have same columns and datatypes) to all the tables in another database. and these two databases...
October 18, 2012 at 12:12 pm
Your trigger is intended to update tblBulkPurchases. I don't have any data in that table. I can' test your trigger because the update has no rows to update.
October 18, 2012 at 10:48 am
briancampbellmcad (10/18/2012)
How should I paste the needed data? It becomes rather scrambled copying from SQL Server.PO_NumberBuyer_InitialSoftware_IDQuantityQuantity_RemainingUnit_PriceSoftware_DescriptionAllocationAccountPurchaseAccountHeatTicketNumberPurchaseCostCenterPO_DateTransaction_DateTransaction_NumberTransaction_Type
3321809JDMNULL61956195NULLSYMANTEC ENDPOINT ENCRYPTION FULL DISKNULLNULL1581886NULL2011-10-132011-10-1322Bulk Purchase
5447441TRE405050315.22OfficePro1321353424244445242145154222012-05-122012-09-1517350Bulk Purchase
5465115OCC51200200120.20Apache3354825193219415995112542012012-05-122012-09-1517300Bulk Purchase
5965215OCC51100100120.20Apache3354825193219415995112452012012-05-122012-09-1517309Bulk Purchase
The best is to post an insert...
October 18, 2012 at 8:58 am
pwalter83 (10/18/2012)
Sean Lange (10/18/2012)
Thank you for the ddl and sample data. However your requirement mentions a column TEU. This is not present on any of the tables you provided.
Sorry Sean,...
October 18, 2012 at 8:15 am
ChrisM@home (10/18/2012)
Brandie Tarvin (10/17/2012)
Young fella, do...
October 18, 2012 at 7:29 am
Thank you for the ddl and sample data. However your requirement mentions a column TEU. This is not present on any of the tables you provided.
October 18, 2012 at 7:26 am
Gail is totally right. There is no need for a while loop here at all. All you are doing is copying a table to another table.
insert #tblTest
select cn, dn
from #tblGroups
Not...
October 17, 2012 at 1:44 pm
kapil_kk (10/17/2012)
truncate is not working..Gives error-
Cannot truncate table 'rolemaster' because it is being referenced by a FOREIGN KEY constraint.
Did you read Gail's post?
Pay close attention to the second part.
or,...
October 17, 2012 at 1:38 pm
Viewing 15 posts - 10,321 through 10,335 (of 15,381 total)