Viewing 15 posts - 1,546 through 1,560 (of 2,044 total)
*DROP TOP 100 PERCENT
*I've rewritten it a bit. Check if the outcome is the same.
SELECT
dbo.tblOrganization.OrganizationTitle AS Organizatie
, dbo.tblInstallation.InstallationTitle AS Instalatie
, dbo.tblForm.FormTitle AS Formular
, dbo.tblParam.ParamTitle + '[' + ISNULL(dbo.tblValue.MeasUnit, '')...
February 27, 2006 at 11:20 am
Have you declared all sizes in your stored procedure?
Like convert(varchar(mylength),my variable) instead of convert(varchar, myvariable)?
February 27, 2006 at 11:03 am
if you know the maximum length of the column
select myfield
from mytable
order by convert(char(maxlen),myfield)
February 27, 2006 at 10:58 am
all those brackets are confusing me
but the subselect in ON=
LEFT JOIN [SELECT description, id, type, call_req_id, last_mod_dt FROM act_log] ON call_req.persid = [SELECT description,id,type,call_req_id,last_mod_dt].call_req_id)
looks like a weird construction
February 27, 2006 at 10:55 am
There is an article about it:
http://www.sqlservercentral.com/columnists/bkelley/sqlserversecuritydealingwithantivirusprograms.asp
February 27, 2006 at 10:48 am
from the books online
The changes specified in ALTER TABLE are implemented immediately. If the changes require modifications of the rows in the table, ALTER TABLE updates the rows. ALTER TABLE...
February 27, 2006 at 10:42 am
There could be too many statistics.
sp_helpstats shows the statistics on the table.
February 27, 2006 at 10:35 am
(n)textfields or (var)char fields?
If varchar you can write an user defined function
Either with the function ASCII (returns int value of the first character)
or with calling REPLACE x times.
February 26, 2006 at 11:55 am
Try
You need to check the configuration for the service. Go to
Services(from Control Panel or Administrative Tools -
depending on your OS).
Go to the sqlserveragent service and view the properties for
the...
February 26, 2006 at 11:29 am
*rewritten with joins
*group by takes care of distinct
SELECT B.BookingID,
ISNULL(UPPER(C.CustomerSurname),'') AS CustomerSurname
FROM tbl_hp_bookings B WITH (NOLOCK)
INNER JOIN tbl_hp_bookings_transactions BT WITH (NOLOCK)
ON B.BookingID = BT.BookingID
AND BT.TransactionTypeID <> 1001
LEFT JOIN tbl_hp_customers C WITH...
February 25, 2006 at 11:44 am
*convert the int properly with convert(varchar(length_of_field),code)
*another way of updating
UPDATE OccRadiology
SET OccRadiology.Ipsil= goodcodes.code
FROM OccRadiology
INNER JOIN /*only the ones who match*/
(select convert(varchar(30),CodeLookUp.Code) as code /*ipsil is varchar*/
FROM CodeLookUp
WHERE CodeLookUp.CType = 93
) AS...
February 25, 2006 at 11:37 am
That's odd.
How do you start sql server agent? From services.msc ?
What sql server version are you using?
Does the path in services.msc ->services-> SQLSERVERAGENT path to executable is correct?
Mine is sql...
February 25, 2006 at 11:22 am
When the popup with the change script comes up, there is a checkbox automatically generate change script on save
February 25, 2006 at 7:27 am
This is a more complete version of
http://support.microsoft.com/default.aspx?scid=kb;en-us;329332&Product=sql
February 25, 2006 at 7:23 am
Either restricting their rights at database level to only allow selects and/or having a check on your query builder.
Do they connect to the database only by your application (application role,...
February 25, 2006 at 7:19 am
Viewing 15 posts - 1,546 through 1,560 (of 2,044 total)