Viewing 15 posts - 14,821 through 14,835 (of 14,953 total)
Sorry, in SSIS, you have to use regular (double) quotes around strings, not single-quotes. Forgot about that.
I tried this out, and I had to also have a derived column...
January 18, 2008 at 8:51 am
Basically agree with you DonaldW.
One experience I had, though, makes me put at least this warning on that idea.
I had a query that joined a table, through a many-to-many table,...
January 18, 2008 at 8:36 am
ALZDBA (1/18/2008)
create view V_myLanguages
as
select 'English' as Language, Base, Text
from tbEnglish
select 'French' , Base, Text
from tbFrench
select 'Chinese' , Base, Text
from tbChinese
go
Select ...
from...
January 18, 2008 at 8:20 am
There are two ways I know of to do this efficiently:
select Base, Text
from tbEnglish
where @Lang = 'English'
union all
select Base, Chinese
from tbChinese
where @Lang = 'Chinese'
...(rest of tables)...
if @Lang = 'English'
select Base,...
January 18, 2008 at 6:54 am
select convert(varchar(20), cast(datefield as datetime), 101)
from dbo.table
That should do the trick for you. Just replace "datefield" with the actual column name and "dbo.table" with the actual schema and table.
If...
January 17, 2008 at 3:36 pm
Steve Jones - Editor (1/17/2008)
Answering questions somewhere like here is good practice as well. Find questions, look up answers, try to solve the issue, etc.
Actually, that's probably an even better...
January 17, 2008 at 3:28 pm
43,000 is only 6 iterations through at 8,000/iteration. It's not elegant, it's even ugly, but it shouldn't take too awefully long to accomplish.
Good luck and let us know how...
January 17, 2008 at 3:04 pm
kirk (1/17/2008)
I understand your explanation. Makes perfect sense. The problem I have had when working with DISTINCT is that all columns in the select list are engaged in the...
January 17, 2008 at 2:53 pm
You don't need parentheses around the select in the insert statement at the end of your script.
insert into #ALLQ
SELECT 'T'+ T334.C2 + RIGHT(T334.C1,7) -- error message point to here
+...
January 17, 2008 at 2:29 pm
My ProofOfConcept database rarely has any consistency from day to day. Usually, I throw together whatever tables I need in order to have just enough to test the exact...
January 17, 2008 at 2:19 pm
Get a copy of SQL Dev Edition, or at least a copy of SQL Express, and start playing with it at home. Build some databases for your own use.
I...
January 17, 2008 at 12:43 pm
we7313 (1/15/2008)
January 17, 2008 at 12:34 pm
On a production server with multiple users, I'd stop the SQL service first, just to be sure that Windows doesn't force a shutdown in the middle of a long-running transaction.
January 17, 2008 at 12:17 pm
Select Distinct on dbo.MyTable should give you what you want.
Using "Select Distinct" in a subquery for an "in" clause doesn't actually do anything except make more work for the server.
Think...
January 17, 2008 at 12:12 pm
jkurtis (1/17/2008)
January 17, 2008 at 12:02 pm
Viewing 15 posts - 14,821 through 14,835 (of 14,953 total)