Viewing 15 posts - 9,181 through 9,195 (of 9,641 total)
Check out this link:
I think it is the same problem you are having.
Google is amazing.
February 28, 2008 at 9:23 pm
KATHLEEN Y ZHANG (2/28/2008)
February 28, 2008 at 9:12 pm
This fixes your error, but I don't think it gets the results you are looking for as it returns all the rows.
select
a.*,
b.f3
from
t1 a inner join
t2 b...
February 28, 2008 at 9:08 pm
First of all you need to post your query if you want that tweaked. Second a difference of 5 what, days, minutes, seconds, years?
February 28, 2008 at 3:16 pm
THis select will get all the users that completed all the tests.
Select
user_id
From
user_test_results
Group By
user_id
Having
...
February 28, 2008 at 3:06 pm
master.dbo.sysdatabases will get you the database list.
You need to use sysusers in the database. That has users and roles in it. syspersmissions has the permissions linked on uid...
February 28, 2008 at 2:58 pm
When using a select to do an insert you do not use the parentheses in your select. Your code should look like:
INSERT INTO intrf_ext_mapped_value
(
ext_system_id,
provider_id,
location_id,
type_id,
mapped_value,
delete_ind,
note,
created_by,
modified_by
)
SELECT
...
February 28, 2008 at 2:44 pm
Matt's solution will cause an error to be thrown whenever the constraint is validated so you will want to catch the error.
February 28, 2008 at 2:37 pm
Matt Miller (2/28/2008)
February 28, 2008 at 9:04 am
Matt Miller (2/28/2008)
...and how exactly is this better than an identity? Sequence tables are evil in my book...:D
now Matt, there are instances where a sequence table is necessary:D. ...
February 28, 2008 at 8:34 am
Manie,
You need to supply a lock hint when selecting from the invoice number:
select @nextinvoice = [next invoice number] from company with(updlock)
February 28, 2008 at 6:02 am
There is not a simple way to do what you want. You can remove identity from the column set the values to null and put the identity property back, I...
February 27, 2008 at 12:25 pm
Use sp_send_dbmail. Use BOL for details.
February 27, 2008 at 12:16 pm
Sugesh Kumar (2/27/2008)
Put the model database in simple recovery model. Also don't create any table in the model database and no transaction there.
Just be aware that by doing this any...
February 27, 2008 at 9:55 am
Viewing 15 posts - 9,181 through 9,195 (of 9,641 total)