Search results

  1. P

    Rights within .ADP project

    The best bet is to create a role with all the requisite permissions. The ideal solution is to provide data insert/update/deletes via stored procedures then you can just grant execute permissions on these and not worry about permissions on the tables. If the owner of the table and stored proc is...
  2. P

    Rights within .ADP project

    When you say its secured, do you mean you've prevented the use of the Shift key on application start up? Usually holding this key on start up will enable the access to tables etc. To secure the sql db you need to manage the permissions of the user. If they're logging in with dbo access then...
  3. P

    security/error prompt

    Not sure how to fix your specific issue, but a work around is to create an AutoIt script that opens the file then clicks the ok button for you. http://www.autoitscript.com/site/ You can compile the script then get you code to run that.
  4. P

    Access Front-Sql Back--how set user rights?

    Yes, SSMS is the main tool for interacting with SQL server. I'm not sure how useful stored procs are for SQL with Access as a front end as I'm assuming you're binding directly to the SQL tables. I steer clear of Access whenever possible and usually use Visual Studio to build .Net front-ends...
  5. P

    Access Front-Sql Back--how set user rights?

    SQL server has two security modes, Windows authentication and mixed. If you users are accessing from the same domain, use Windows as users will not need to login manually. To access data, a user needs to have a login and has to be a user of the database. Sql offers fine grain control over...
  6. P

    Manually deal with SQL Server timestamp datatype

    Use the MVVM design pattern to help keep your concerns separated. If you're not familiar with MVVM and are pursuing WPF I strongly suggest you adopt this pattern as it will make your life a whole lot easier - start here: http://msdn.microsoft.com/en-us/magazine/dd419663.aspx In my design, each...
  7. P

    Manually deal with SQL Server timestamp datatype

    Its used for checking data concurrency. I don't have a sample to send, but I use it like this: - use a stored proc to get the row data including the timestamp and save this in the front end app (I use WPF) - a user views the data, updates it and saves back to the db with an update stored proc...
  8. P

    carrying out to 2 decimals in query

    You're using an integer not a real number. Just add the .0 to fool it and you're get a more accurate result, then round as necessary declare @birth date = '1980-10-20' select datediff(d,@birth,getdate())/365.0 as age
  9. P

    Date parameters in SQL query

    If you're querying against a SQL Server db you should put the query in a stored procedure and make the required date a parameter of the stored procedure. eg. create proc query_servicedaily_by_date @paramdate date as begin set nocount on select * from servicedaily where date =...
  10. P

    HELP Please. Access + SQL

    Yep, you can create and edit SQL Server tables etc using Access although there will be issues with compatability depending on the versions of each. For instance, Access 2003 cannot amend SQL Server 2008 tables etc, although you can see the data ok. There are other differences - if I remember...
  11. P

    Ranking problem

    Hi, My mistake, the solution I gave is for SQL Server rather than Access.
  12. P

    Anyone have some code to find a date inside a string

    Use regular expressions (namespace required is Microsoft VBScript Regular Expressions 5.5). Reduce the number of potential fields by, for example, looking for fields containing forward slashes or hyphens (based on your examples), then define your regular expressions to match the different...
  13. P

    Merge Tables With Not In

    Just select the records with not exists like this: insert into table1 ( name, date,value ) select a.name,a.date,a.value from table2 a where not exists ( select null from table1 p where a.name = p.name and a.date = p.date and a.value = p.value )
  14. P

    Query / Append for Top N

    You need to use a subquery to select the 8 records you wish to use and then use this a basis for running your update query by joining to it.
  15. P

    Ranking problem

    select *, dense_rank() over(order by dag) as _rank from punten_dag
  16. P

    Connection SQL server 2008

    You need to ensure you have a login on the sql server and that you have been registered as a user on the db you are trying to connect to.
  17. P

    Can I run SQL Server stored procedures from Access mdb

    I use a small class to run them; Option Compare Database Option Explicit 'run Stored Procs and return recordset of output Private comm As Command Private conn As New Connection Private m_sp_name As String Private Sub Class_Initialize() Set conn = CurrentProject.Connection Set comm = New...
  18. P

    Non Parameter Sp Result show onto form text Control Probs !

    You need to return the result to a recordset and use this to fill your textbox. 'create connection 'create command dim rs as new Recordset Set rs = comm.execute This will populate the rs object with the data from the sp, then use the recordset fields to fill the textbox.
  19. P

    Using a Check Box in SQL

    Store the value in the SQL table as a tinyint column and set a check constraint to ensure only 0 and 1 are valid values. ie. create table mytable ( mytable_pk int identity(1,1) primary key, my_checkbox_column tinyint check(my_checkbox_column in (0,1)) not null ) You can leave the column...
  20. P

    Querying against a Union Query In SQL Server 2005

    No need to create views or tables - you can use the union query as a sub query and run the query on that, or even better use the with clause: ;with mytable ( Select AssyNo ,PrimaryNo ,PrimaryQty ,PrimaryScrp ,ComponentNo ,CompQty ,STNDCOST ,ScrapPer ,LOCNCODE ,Levels ,Sort From CSTRLUP01 union...
Back
Top Bottom