Viewing 15 posts - 5,926 through 5,940 (of 6,037 total)
Do you show data from database directly to end user? Without any front-end application?
Define the presentation format is a task for a application, not SQL Server.
_____________
Code for TallyGenerator
September 23, 2005 at 5:36 am
System account is not the right account to start SQL server. The are many issues corresponding to this option. If you want you can make a quick research and find...
_____________
Code for TallyGenerator
September 23, 2005 at 5:29 am
As I understand problem was not in treturning array from SP but in supplying array to SP.
You cannot do it with parameters, but you can use #Table.
_____________
Code for TallyGenerator
September 23, 2005 at 4:15 am
Check the account started MSSQLSERVER.
It must be "Local System Account".
Change it to proper account and try not to use Local System Account to start MSSQLSERVER anymore.
_____________
Code for TallyGenerator
September 23, 2005 at 3:47 am
You have 2 tasks.
1st - find latest set_id
2nd - use this set_id as a filter.
Subquery by definition.
Sorry.
_____________
Code for TallyGenerator
September 23, 2005 at 12:16 am
Create table function dbo.Managers(EmployeeId) to return list of all managers of the Employee (you may add column "level" to retyurned recordset) and then join this function to employee table.
_____________
Code for TallyGenerator
September 23, 2005 at 12:10 am
Use hash tables.
Create TABLE #array () in procedure from where you call SPReturnarray and fill it with data.
Than you can select from #array inside SPReturnarray.
_____________
Code for TallyGenerator
September 23, 2005 at 12:06 am
You need to "Include Extended roperties" when "Create Destination Object" via DTS wizard.
_____________
Code for TallyGenerator
September 23, 2005 at 12:01 am
.0 forces real calculation.
If you need float precision type .00000.
And finally, use variables. Do you actually remember what they told you on programmers courses?
_____________
Code for TallyGenerator
September 22, 2005 at 11:52 pm
And don't use "sa". ![]()
_____________
Code for TallyGenerator
September 22, 2005 at 11:45 pm
Throw away the cursor.
INSERT INTO SB_DEBTOR
SELECT ....
WHERE NOT EXISTS (select
SB_DEBTOR_ID
from
SB_DEBTOR
where
SB_DEBTOR_CONTACT_SURNAME = D1.SB_DEBTOR_CONTACT_SURNAME and
SB_DEBTOR_ADDRESS_1 = D1.SB_DEBTOR_ADDRESS_1 and
SB_DEBTOR_SUBURB = D1.SB_DEBTOR_SUBURB and
SB_DEBTOR_POSTCODE = D1.SB_DEBTOR_POSTCODE
)
INSERT INTO SB_PATIENT_REGISTER
SELECT
FROM < joins you use for select>
INNER...
_____________
Code for TallyGenerator
September 22, 2005 at 11:41 pm
Calculate your "from date" this way:
DECLARE @StartDay smalldatetime, @Today smalldatetime
SET @StartDay = '1900-07-01'
SET @Today = getdate()
... between dateadd(yy, datediff(yy, @StartDay, @Today), @StartDay) and @Today
_____________
Code for TallyGenerator
September 22, 2005 at 3:44 pm
Just convert it to float and apply whatever format you want in front end application.
_____________
Code for TallyGenerator
September 22, 2005 at 3:36 pm
you have space within your time value.
So when you remove brackets your 1 column containing date becomes 2 columns.
And if problem is not in excessive number of columns but...
_____________
Code for TallyGenerator
September 22, 2005 at 3:27 pm
September 19, 2005 at 7:12 pm
Viewing 15 posts - 5,926 through 5,940 (of 6,037 total)