Viewing 15 posts - 586 through 600 (of 668 total)
you will probably need to unpivot the second table to join, but without any DDL and sample data it's hard to give you the code to do it
May 12, 2010 at 12:54 pm
do you have any sample data with expected results? It's hard to determine what you need without seeing the function, tables, data, etc.. Also, what have you tries...
May 12, 2010 at 12:19 pm
I'm glad to hear you found the answer. Just an FYI, BOL stands for Books On Line. if is a set of documentation that Microsoft creates to help...
May 12, 2010 at 12:03 pm
There are limits to the max and min dates allowed for Samlldatetime date types. Look in BOL.
May 12, 2010 at 8:43 am
give this a try
declare @temptrans table (rn int, accno int, trandate smalldatetime,
classification char(3), runningtotal tinyint)
insert into @temptrans
SELECT 1 [RN], 1234 [Accno], '01/01/2010' [TranDate] , null, null UNION ALL -- c1
SELECT...
May 12, 2010 at 8:41 am
Garadin (4/29/2010)
Does oracle handle schemas the same way as MS SQL? (Totally clueless about all things oracle)The other option to try might be:
select * from myLinkedServer...[mySchema.myTable]
I don't remember, but...
April 29, 2010 at 9:49 am
Have you tried using OpenQuery instead?
Select * from OpenQuery(MyLinkedServer,'Select * from MySchema.MyTable')
April 29, 2010 at 8:16 am
In SSMS, expand table B and go to keys. Right-Click FK and select modify. Under Table Designer, expand INSERT And UPDATE Specific, Unde Delete Rule Select Cascade....
April 29, 2010 at 7:28 am
how are the foreign keys setup? If they are setup as Cascade Deletes, then just deleting the records from Table A will also delete the records in Table B...
April 28, 2010 at 10:13 am
here's a proc that I use to get the status of a job. I put it in the master db, that's why the naming convention
Create procedure [sp_IsJobRunning]
...
April 21, 2010 at 10:00 am
How big is the XML you are passing in? I've seen issues where if this is large, then it will take a while to parse through it. I've...
April 21, 2010 at 9:21 am
try a CTE
CREATE TABLE [dbo].[test](
[EnrolleeID] [int] NULL,
[LanguageID] [int] NULL,
[LanguageName] [varchar](20) NULL
)
GO
INSERT INTO [dbo].[test]([EnrolleeID], [LanguageID], [LanguageName])
SELECT 20, 1, N'English' UNION ALL
SELECT 20, 2, N'Spanish' UNION ALL
SELECT 20, 3, N'Portugese' UNION...
February 26, 2010 at 10:53 am
sounds like it's specific to the file. Can you provide a sample file as well as the table layout you're trying to import into?
February 2, 2010 at 1:27 pm
as part of the sp_addarticle procedure used to publish the articles for replication, one of the parameters is @filter_clause. I've never used it, but you could potentially put a...
February 2, 2010 at 1:24 pm
The where vctmovementmonth = jan-10 is limiting what is coming back, so you won't be able to compare the MovementMonth calc the way you have it. Try using an...
February 2, 2010 at 10:34 am
Viewing 15 posts - 586 through 600 (of 668 total)