Viewing 15 posts - 8,311 through 8,325 (of 8,731 total)
October 18, 2012 at 4:30 pm
What about using the query that Sean gave you for each database using and except between them?
select so.name as TableName, sc.name as ColumnName, t.name as DataType,
--need to divide by...
October 18, 2012 at 2:50 pm
Hi,
You should help us to help you by delivering ddl and sample data in a consumable format. Because you're relatively new, I did it for you this time.
Here's a possible...
October 18, 2012 at 12:15 pm
Eugene Elutin
I don't think that Luis example will run (WHERE IsSuperUser AND...)
I forgot to complete the condition, it's corrected now.
kapil_kk
October 18, 2012 at 9:45 am
For what I understood, you're trying to have Users and PortalUsers for all the employees.
This should do the trick. However, you might feel more confident using the OUTPUT clause.
Be aware...
October 18, 2012 at 9:19 am
You need to get rid of that cursor. We could help you but you need to provide the code for the stored procedure.
October 18, 2012 at 8:44 am
Maybe you can do something like this:
;WITH BaseData AS (
SELECT
observ_value,
prod_id_code1,
create_timestamp,
modify_timestamp,
ROW_NUMBER() OVER (PARTITION BY person_id, obs_id ORDER BY...
October 18, 2012 at 8:21 am
Please test the solution, I might have made a mistake.
declare @Temp table(state varchar(50),county varchar(50), city varchar(50),Action varchar(50), ActDateTime DateTime)
insert into @Temp(State,County,City,Action, ActDateTime)
select 'Texas','Harris','Houston','Census Taken','11/12/2010 00:00:00' Union all
select 'Texas','Harris','Houston','Census...
October 17, 2012 at 4:18 pm
For a simple solution, use a Calendar Table. There are many solutions but here is one that might help you with other queries. http://www.sqlservercentral.com/scripts/Date/68389/
With that, you can simplify your query...
October 17, 2012 at 12:05 pm
I'm not an expert in this area (I'm just learning) but an advice I've read says that you shouldn't have a backup plan. You should have a recovery plan:-D.
You need...
October 17, 2012 at 9:27 am
edgar58 (10/16/2012)
Hi,I've explored using Pivot and Case. All help is appreciated.
Thanks!
Have you explored using Case (Cross Tabs) with ROW_NUMBER with PARTITION BY Acct_ID?
October 16, 2012 at 4:12 pm
You should take a look at this article
http://www.sqlservercentral.com/articles/CROSS+APPLY+VALUES+UNPIVOT/91234/
Most in here would say you want to unpivot the table 😀
October 16, 2012 at 2:25 pm
Create a unique constraint on the PO number
October 16, 2012 at 12:28 pm
Hi, welcome to SQL Server Central.
Unfortunately, you didn't give enough details for someone to help you out.
You need provide code or at least the actions that are followed by the...
October 16, 2012 at 11:43 am
One rule you should follow is not to use code you don't understand. If you need to support it and you don't know what it's doing, you'll be in trouble.
Read...
October 16, 2012 at 11:17 am
Viewing 15 posts - 8,311 through 8,325 (of 8,731 total)