Viewing 15 posts - 14,806 through 14,820 (of 14,953 total)
One way, which requires a little work, but not too much, is to use a partitioned view instead of a table for the web page.
When you're ready to import the...
January 22, 2008 at 7:09 am
Never mind. The web page was truncating part of the subject.
On the question: "What T-SQL commands exist which can be used in Query Analyzer to export a select statement...
January 21, 2008 at 12:37 pm
"So much to accomplish, but first, I have to figure out these tricky RIGHT OUTER joins ..... "
Table1
ID
1
2
3
Table2
ID
1
4
5
Inner Join:
select *
from Table1
inner join Table2
on Table1.ID = Table2.ID
Result
1 ...
January 21, 2008 at 12:28 pm
I just had to fix a database that had 14 tables (out of 60 total tables) with identity columns, but no primary key or clustered index defined. Another table...
January 21, 2008 at 12:18 pm
You're declaring @TBL as a varchar, then trying to select from it. You can't select from a varchar variable.
Either @TBL needs to be declared as variable type "table", and...
January 21, 2008 at 9:37 am
Are you seriously looking for someone to type up a full list of all T-SQL commands and examples of their use?
If so, I highly recommend opening up Books Online and...
January 21, 2008 at 9:33 am
I agree with Roy. Creating a role with the correct (minimum) permissions to get the job done will allow you add more users, etc., to that role as appropriate,...
January 18, 2008 at 1:38 pm
Personally, I'd just set up a separate job to back up the transaction log, and schedule it to run as often as you feel is necessary. Don't take it...
January 18, 2008 at 1:35 pm
DonaldW (1/18/2008)
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...
January 18, 2008 at 12:30 pm
keywestfl9 (1/18/2008)
i replaced datefield to my column name which is of nvarchar(50) containing dates and the table name.
but i...
January 18, 2008 at 12:14 pm
And, of course, Matt posted the same correction to his Order By while I was writing mine. 🙂
January 18, 2008 at 12:10 pm
You would need to add ActionID between OrderID and Ranking in Matt's example, in the Order By statement. Otherwise, you'll get all the Actions and then all the Parts,...
January 18, 2008 at 12:08 pm
The easiest way to do this would be to do inner joins between the tables, select the columns you want, and then have the front end application do the layout...
January 18, 2008 at 12:03 pm
He's already mentioned that the column is being changed to datetime. He just wants to reformat it first (didn't say why). So, he's on the right track and...
January 18, 2008 at 9:00 am
select NameID, Specialty, ColX
from dbo.MyTable
inner join
(select min(MyTableID) as MinID
from dbo.MyTable
where Specialty = 'X1'
group by NameID) Sub1
on MyTable.MyTableID = Sub1.MinID
That will give you...
January 18, 2008 at 8:58 am
Viewing 15 posts - 14,806 through 14,820 (of 14,953 total)