Forum Replies Created

Viewing 15 posts - 17,626 through 17,640 (of 18,923 total)

  • RE: Track a stored procedure progress on front end.

    keep in mind that if you do something like this you'll have to use a permanent table to update the progress meter table.

    This might cause so big problems if you...

  • RE: Track a stored procedure progress on front end.

    Create procedure megaWork @param as int --...

    as

    set nocount on

    --reset progress bar

    --step one

    --update progress meter tab

    --have the application open another thread and query that progress table

    --keep working on the process of???

    --reupdate...

  • RE: Multiple views with different owners

    forgot to mention to create the view using : WITH CHECK OPTION

    This will forbid them to change the region_id, so their information will always remain accessible.

  • RE: Multiple views with different owners

    1 - Create a table with all the usernames and associate it with their region

    2 - Create table dbo.CORP

    3 - Create view dbo.vwCorp

    4 - Create a function that returns the...

  • RE: Track a stored procedure progress on front end.

    2 options come to mind.

    1 - Have the proc update a progress table in the database, then query that table every few minutes to update the progress bar.

    2 - Split...

  • RE: Display Last Record

    Do you have an identity column?

    Do you have a date inserted column?

    Select top 1 Col1, Col2 from dbo.YourTable order by IdentityCol desc

    or

    Select top 1 Col1, Col2 from dbo.YourTable order by...

  • RE: Can this be done without using cursor?

    Does this break the record for the most space wasted with useless junk on this message board or what?

    Now that you know how...

  • RE: Can this be done without using cursor?

    1 - I would update my cv because a query like this would get me fired from any respectable job I'd have.

    2 - This query ASSUMES that the item is...

  • RE: using stored prcedures within functions

    Just do something like this :

    Create function dbo.a (@someparam as int)

    RETURNS TABLE

    AS

    return (

    Select id from dbo.yourTable where Something=@Someparam

    )

    GO

    Create procedure dbo.b @SomeParam as int

    as

    set nocount on

    Select * from dbo.tableB...

  • RE: select query

    Hey znkin, just make sure you have an index on trans_date and test both execution plans... you'll see which query runs faster .

  • RE: using stored prcedures within functions

    You can't exec a stored proc in a function. You'll have to copy the select in that function or convert the stored proc to a parametered function.

  • RE: Build a leaderboard

    k.. Good luck with this project.

  • RE: SELF JOIN

    HTH.

  • RE: sql help please

    Another neat trick that you might like :

    select id, txtData From Yourtable order by case txtDate when 'html' then 0 else 1 end

  • RE: help with date parameters

    If you, as I hope, pursue this solution, make sure that the date column is indexed in the activity table. The best case would be to have it be...

Viewing 15 posts - 17,626 through 17,640 (of 18,923 total)