Viewing 15 posts - 346 through 360 (of 532 total)
Couple of basic things ...
Generally you don't want to worry about formatting on the database side. The db should just be storing the date as a date ... the...
June 9, 2010 at 11:31 am
Lutz is 100% correct. Using case statements will have superior performance and readability. If you don't understand how to implement and you need to see a fully coded...
June 9, 2010 at 11:03 am
Jeff Moden (6/8/2010)
June 8, 2010 at 6:26 pm
joefreeman (6/8/2010)
June 8, 2010 at 6:11 pm
Use the tags that say 'code="sql"' (4th from the bottom) and it will look much nicer.
June 8, 2010 at 5:18 pm
Please provide table definitions and sample data so we don't have to guess about those things.
June 8, 2010 at 2:20 pm
Actually, before doing that, spend some time reading this great article[/url] posted by Jeff Moden. Then, if you still have questions feel free to post them here, but do...
June 8, 2010 at 2:09 pm
I can think of two ways:
method #1
select ClientName, [Home], [Work], [Cell]
from #tempContactNumbers
pivot
(
MIN (ContactNumber)
FOR ContactType IN
([Home], [Work], [Cell])
) pvt;
method #2
with cteTemp(ClientName, Home, Work, Cell)
as
(
SELECT
...
June 8, 2010 at 11:09 am
If you're getting the error "Login failed for user 'NT AUTHORITY\IUSR'", then your app is not using the account that you set up. It's passing along the user credentials...
June 7, 2010 at 5:11 pm
Why would you want to store text as an image?
June 7, 2010 at 5:04 pm
There is a lot of information about SQL Server Profiler in Books Online. Just look up 'profiler' in the index.
Profiler will allow you to set up a trace, by...
June 7, 2010 at 5:00 pm
Whatever you're using (vb.net) ... print your SQLstr to see what it's actually sending to the SQL Server. I'm guessing that it is not resolving Me.DropDownListDept.SelectedValue.ToString to what you...
June 7, 2010 at 4:54 pm
This isn't a SQL question, this is a VB question but I'll do my best to help you ...
You can reference multiple tables within a dataset. Where your dataset...
June 7, 2010 at 12:44 pm
You say the question isn't about how to pivot (and Paul linked an article for you about that anyway), so this is just a matter of limiting your records as...
June 7, 2010 at 10:45 am
The FK constraints are more of a data integrity issue than a performance issue. The big thing is to make sure you have appropriate indexing on your tables or...
June 4, 2010 at 3:56 pm
Viewing 15 posts - 346 through 360 (of 532 total)