Viewing 15 posts - 13,171 through 13,185 (of 15,381 total)
I can't imagine why in the world you want this "format". Of course formatting really belongs in the front end and not in sql but you can do it. You...
January 25, 2012 at 8:01 am
Do you mean can you open an Access table from sql server?
January 25, 2012 at 7:51 am
The difference is huge. Dynamic sql is simply building a executing against your database. This is open to sql injection. Parameterized query is using variable to hold the values for...
January 24, 2012 at 2:54 pm
Are you familiar with tally tables? If so you can tape this together fairly easily. You can read Jeff Moden's article about them here. http://www.sqlservercentral.com/articles/T-SQL/62867/%5B/url%5D
I am think you could...
January 24, 2012 at 2:37 pm
Wow reading through that it looks like it could a total rewrite. There are just dozens and dozens of calls to the same scalar function. It inserts detail rows then...
January 24, 2012 at 2:05 pm
Aha!!! So what you really want is to modify this proc to show the last x years?
January 24, 2012 at 1:54 pm
What is that total row? It is kind of total line but not at the same time. There seems to be a lot of information you are not providing.
January 24, 2012 at 1:16 pm
Duplicate post. Direct all replies here. http://www.sqlservercentral.com/Forums/Topic1241027-392-1.aspx
January 24, 2012 at 1:11 pm
To truly get your five years of data you will need to use a calendar or a tally table. If at all possible you might consider changing your datatypes for...
January 24, 2012 at 12:58 pm
It is pretty hard to tell what your desired output should look like. Can you provide that in the format you want it in instead of an insert? If we...
January 24, 2012 at 12:55 pm
Reading your post again I think you are asking how to retrieve data from 2 databases at once? You can query across databases quite easily. If they are on the...
January 24, 2012 at 7:49 am
You can't. That requires multithreading which a single query window in SSMS does not do. Why do they have to run at the same time? Unless you do something like...
January 24, 2012 at 7:46 am
Just use datediff for that. http://msdn.microsoft.com/en-us/library/ms189794.aspx
January 24, 2012 at 7:42 am
I cannot think of a way there would be a tie.
What about something like this:
TranSeqTranTypeTranAmtTranPeriod
12-100
21100
32-100
Here is what I mean by a tie. Now which one would be the correct match?...
January 24, 2012 at 7:29 am
Wow that is nasty.
I get what you mean about the transaction period thing but "inside out". That is pretty ambiguous. Do you look first for an earlier one and...
January 23, 2012 at 3:44 pm
Viewing 15 posts - 13,171 through 13,185 (of 15,381 total)