Viewing 15 posts - 1,276 through 1,290 (of 3,957 total)
sqlserver12345 (10/20/2013)
I do not want to use reverse function.please check the code I posted and correct what wrong I did.thanks
That's exactly what we're doing by showing you the right way!...
October 20, 2013 at 6:34 pm
Article submitted!
Design, Build and Test a Dynamic Search Stored Procedure
It's a long one.
October 20, 2013 at 1:13 am
As I have a hot idea in my head I'll work on it this weekend.
October 18, 2013 at 7:43 pm
Greg Edwards-268690 (10/18/2013)
jasona.work (10/18/2013)
October 18, 2013 at 7:39 pm
Are you still looking for something on this?
I have an idea that works through the process of designing a SP to handle a parameterized query, based on the best practice...
October 18, 2013 at 3:30 am
Let's say for the sake of argument and amusement you had a really, really fast FUNCTION for generating a calendar table. Like the following:
CREATE FUNCTION [dbo].[GenerateCalendar]
...
October 18, 2013 at 1:14 am
ramos.ferdinand (10/17/2013)
cadavre i would really appreciate it if you can walk me through on your query. the stuff and xml path are all new to me.
Thanks...
October 17, 2013 at 8:07 pm
Allow me to make amends for my prior transgression with my take on the Dynamic SQL version:
WITH UnravelHiearchy AS
(
SELECT Level=0, Car, Child, Parent, Category_Name
...
October 17, 2013 at 8:05 pm
MWise (10/16/2013)
October 17, 2013 at 6:56 pm
ramos.ferdinand (10/17/2013)
IF object_id('tempdb..#testEnvironment') IS NOT NULL
BEGIN;
DROP TABLE #testEnvironment;
END;
SELECT [Car], [Child], [Parent], [Category_Name]
INTO #testEnvironment
FROM (VALUES('Type R',16369,14499,NULL),
...
October 17, 2013 at 6:48 pm
tomek tomek (10/17/2013)
First of all - Big Thanks for all your input (and good words for newbie as well:).
@Dwain.C
1. quirky update - I've seen it before. I didn't know...
October 17, 2013 at 6:13 pm
I forgot to add that if there's a possibility that both status will change on the same day, you should replace the UNION ALL where the #Temp table is created...
October 17, 2013 at 2:01 am
I agree with Alan.B that you've got a pretty good way already figured out. I also agree with his comment about named columns, but I assume these are just...
October 16, 2013 at 7:22 pm
This is untested and may not be possible but you can give it a try:
INSERT INTO DB2.dbo.CUSTVEND
OUTPUT Inserted.*
INTO DB3.dbo.CUSTVEND
SELECT *
FROM DB1.dbo.CUSTVEND c1
where c1.ACCTNO+c1.SUBC not in(Select distinct ACCTNO+SUBC
from DB1.dbo.CUSTVEND)
Not sure...
October 16, 2013 at 6:32 pm
Viewing 15 posts - 1,276 through 1,290 (of 3,957 total)