Viewing 15 posts - 6,331 through 6,345 (of 8,753 total)
sqlvogel (1/3/2015)
shashianireddy (1/3/2015)
how to insert two tables in single quarie ...like above
It's possible to do two inserts in a single statement like this:
INSERT INTO dbo.table_b (empid, epsal)
SELECT empid, epsal
FROM
(
MERGE INTO...
January 4, 2015 at 6:13 am
KoldCoffee (1/3/2015)
http://winscp.net/eng/docs/guide_ssis
Next I want...
January 4, 2015 at 2:47 am
asita (1/3/2015)
Nolock is ignore the locks (please ignore it)
To me it appears as the nolock hint is used here as a blanket solution, without understanding the potential effects of it,...
January 4, 2015 at 2:29 am
A quick (self explanatory) solution which should be enough to get you passed this hurdle
😎
USE tempdb;
GO
SET NOCOUNT ON;
GO
/* Drop the sample table if it exists */
IF OBJECT_ID(N'tempdb..#MyPhoneList') IS NOT NULL...
January 4, 2015 at 2:11 am
Quick questions, could you provide some sample data? Why the NOLOCK hints? What is the definition of a unique entry in the set?
😎
January 3, 2015 at 2:11 pm
Quick thought, this can be done in some circumstances where the result sets are equal in structure, consider this example
😎
USE tempdb;
GO
SET NOCOUNT ON;
GO
CREATE PROCEDURE dbo.TWO_RESULT_USP
AS
SELECT
OBJECT_ID
...
January 3, 2015 at 1:40 pm
Jeff Moden (1/3/2015)
January 3, 2015 at 12:09 pm
Strongly recommend following Luis's suggestion, simple and well tested approach.
😎
For completeness, below is an sample solution which replicates the logic in a query instead of the splitter function.
USE tempdb;
SET...
January 3, 2015 at 7:34 am
Phil Parkin (1/3/2015)
Eirikur Eiriksson (1/3/2015)
Luis Cazares (1/3/2015)
DECLARE @date date = '20140927'
Be careful with the implicit conversion as the results will be depending on the system settings, no guarantee that it...
January 3, 2015 at 3:51 am
Phil Parkin (1/3/2015)
The quote was from the original post & I just wanted to throw this in as an aside, not as a suggested solution...
January 3, 2015 at 2:28 am
Luis Cazares (1/3/2015)
DECLARE @date date = '20140927'
Be careful with the implicit conversion as the results will be depending on the system settings, no guarantee that it will be interpreted as...
January 3, 2015 at 2:23 am
cheryljanicedsouza (1/2/2015)
I need to convert the given data 20140927 into 27 Sept 2014. Plz help. Thanks
Given that the originating data type is not date, the operation is twofold, first...
January 3, 2015 at 2:19 am
Phil Parkin (1/3/2015)
just set @@Identity to a variable and do a second insert statement.
Rather than @@Identity, you would be better off...
January 3, 2015 at 1:47 am
Jeff Moden (1/2/2015)
I could be wrong but that looks like it presupposes what the identities will be.
It doesn't as the output clause retrieves the identity values generated in the first...
January 3, 2015 at 1:38 am
marcia.j.wilson (1/2/2015)
January 2, 2015 at 1:47 pm
Viewing 15 posts - 6,331 through 6,345 (of 8,753 total)