Forum Replies Created

Viewing 15 posts - 316 through 330 (of 345 total)

  • RE: Looking for advice with setting up a new procedure to run jobs

    Yes, I remember mutex from OS class oh so long ago. Couldn't think of the term. Thanks for that.

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: Calling SP procedures with parameters from Access

    What is nice about an Access project is that it has a natural connection to SS so you can always just reference CodeProject.connection. But if it's an mdb, you can...

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: Calling SP procedures with parameters from Access

    If it's a database file instead of a project file, it's not any more complicated. But let me ask this: why send your data through parameter calls of a SP...

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: Calling SP procedures with parameters from Access

    If your Access file is an adp connected to the SQL Server database, then just use VBA like this:

    Dim rs As New ADODB.Recordset

    rs.Open "EXEC [usp_MyProcedure] " & ID, CodeProject.Connection

    If Not...

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: Edit Tables Using MS Access Data Project

    ok, let's try from another angle. type this in a query window in SSMS and execute it. let me know the response.

    alter table [table_name] add primary key ([column_name])

    of course, replace...

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: Edit Tables Using MS Access Data Project

    Set the PK in SSMS. When you reopen your Access project it should reconnect and recognize the PK.

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: Edit Tables Using MS Access Data Project

    blackwell (1/31/2011)


    What has me puzzled is that I can create new sql server tables in access and edit them fine but, when i import them via the import tool, I...

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: Moving / editing / appending data

    Use SQL Server Agent to make jobs to run your queries.

    http://msdn.microsoft.com/en-us/library/ms189237.aspx

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: Triggers, Stored Procedures, & MS Access UI's

    For the sake of my OCD, combine the two inserts in the trigger:

    ALTER trigger [dbo].[InsertJoinWebsiteEVS]

    on [dbo].[Members]

    for insert

    as

    SET NOCOUNT ON

    insert into EVSActions ( Membership, EVSActionTypeID, ActionDate )

    select

    Inserted.Membership,

    case when Inserted.bitUser_MonthlyOptIn = 1...

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: SQL Joins (Possible CASE or If Statement Needed) Help???

    If there are optional foreign keys in your main table, then left join. This should get those values:

    select t.CNSTransID,

    t.DataSource,

    t.UserID,

    CAST (t.ExternalFileDate as DATE) ExternalFileDate,

    t.ExternalFileIdentifier,

    t.OrgSysTransID,

    s.HiNetMajor,

    t.HiNetMinor,

    t.SettleCurrCode,...

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: Select column values as comma seperated format

    This article was posted earlier this week:

    http://www.sqlservercentral.com/articles/comma+separated+list/71700/

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: Another create trigger question

    I guess I should be clearer. The trigger is breaking when concatenating the msg with the @Last_Login_Date, so I wrapped it in a CAST. You didn't see that error because...

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: Another create trigger question

    I think your trigger is erroring out. Run this to update GSquared code:

    ALTER TRIGGER LastLoginDate ON dbo.users AFTER update

    AS -- first error fixed here

    --//ColumnName

    DECLARE @Last_Login_Date datetime, @msg varchar(500);

    IF EXISTS

    ...

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: Performance tuning a self Join

    Your query can't get any simpler for better performance. But HowardW has a point, why use the subselect at all?

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: Script Run the Result of query

    Actually we're only after the points. I hear the winner gets to choose from an xbox and a mountain bike.

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

Viewing 15 posts - 316 through 330 (of 345 total)