Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4085374
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:34:07+00:00 2026-05-20T18:34:07+00:00

I use С# Express with Entity Framework. And not very good in SQL Server

  • 0

I use С# Express with Entity Framework. And not very good in SQL Server scripting.

So, I have this table

CREATE TABLE DataTable
(
  Id                INT              NOT NULL  ,
  Value             VARCHAR(20)          NULL  ,
  Author            ???????????      NOT NULL  ,
  CreateTime        DATETIME         NOT NULL  ,  
  CONSTRAINT PK_DataTable PRIMARY KEY CLUSTERED (num ASC) 
  ON [PRIMARY] 
)

Tell me please, how to write current Server user as author of data commit to my table.
Users enter through a local network in SQL Serve authorization mode.
It should be pretty transparently for c# programmer, and it should be handle on server side.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T18:34:08+00:00Added an answer on May 20, 2026 at 6:34 pm

    This would be a great place for a trigger. Database triggers are often used for logging operations such as the one you’re describing. In the trigger simply include the current user in your insert data.

    There is a complete sample here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this as configuration of my Express server app.use(app.router); app.use(express.cookieParser()); app.use(express.session({ secret: keyboard
I have a simple app written using SQL Server, Entity Framework, C# and WCF.
I am not used to work with SQL Server(usually I just use express). I
I need a valid SQL Server 2008 connection string for Entity Framework 4.1 code-first
I have 3 home PCs that have 2008 SQL Server Express instances installed on
Project info: WPF, PRISM, C# 4.0, WCF, Entity framework, SQL(express) My database contains several
I do not have 'full' the version of MS SQL (SQL Express 2008) so
So, I have an app that uses a SQL Server express db. I have
Which lightweight SQL Server type could I use on my Dev machine for a
I'm doing it like this: app.use(express.session({ cookie:{domain:.+settings.c.SITE_DOMAIN}, secret:'abc', store: redis_store, })); When I log

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.