Find Jobs
Hire Freelancers

MS SQL - Create a stored procedure

€8-30 EUR

Completed
Posted over 4 years ago

€8-30 EUR

Paid on delivery
We have a table with a TZ col.. Data Type: binary(12) TZ is always 12 bytes long, and each bit represents 15 minutes. So 12 bytes x 8 bits = 96 x 15 minutes = 24 hours. We need a stored procedure for checking if @dateTimeA (variable date time) is within TZ to check if we are now inside a TZ (timezone) is something like this : bool bNowInTZ = false; CTZSet setTZ; [login to view URL] ("ID=%d", nTZ); [login to view URL] (); if ([login to view URL] () == false) { int nBit = [login to view URL] () * 4 + [login to view URL] () / 15; if ([login to view URL] (nBit/8) & (1<<(nBit&7))) bNowInTZ = true; } [login to view URL] (); please start comment with CSQL20
Project ID: 23850803

About the project

4 proposals
Remote project
Active 4 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
CSQL20 I see that you are using TZ column as a BIT MASK in that 96 different bits allow you to store 96 different timezones. So, in order to find the timezone that is present in TZ column, one has to perform bitwise operation and check whether corresponding bit is set or not. The code you provided is C# equivalent for this bit fiddling. Now, you want to do that in T-SQL. Have I followed? I can do that but have a question. None of the data types in SQL Server expect DATETIMEOFFSET support storing of timezone information. So, the input parameter to the stored proc should be a DATETIMEOFFSET and NOT other types such as DATETIME, DATETIME2, etc. Please explain. Thanks
€19 EUR in 1 day
5.0 (2 reviews)
2.7
2.7
4 freelancers are bidding on average €22 EUR for this job
User Avatar
Hello I have several years of experience with MSSQL and T-SQL language including working stored procedures.
€21 EUR in 1 day
4.9 (1795 reviews)
8.0
8.0
User Avatar
Hello Dear, I have gone through your project details thoroughly that you want to Create a stored procedure I am the perfect candidate for this job because we are an agency based in UK and we have team of professional developer’s and marketers. We have more than 150 clients spanning from USA, UAE, UK, AUSTRALIA, PAKISTAN, and CANADA. Our core expertise includes - Web Development: Word press, Magneto, Shopify, Opencart, Big Commerce, CsCart, PHP, Laravel, SQL, Mongo DB, and MeanStack.
€30 EUR in 1 day
0.0 (1 review)
0.0
0.0
User Avatar
Hi I’m nawaraj I had checked your description and I’m very interesting for your project. I have experienced 5+ years on merchant platform like digital wallet using asp.net and mssql. I had experience with complex stored procedure. Could we discuss more in chatting? Thank for your reading my did.
€19 EUR in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of DENMARK
Engesvang, Denmark
5.0
23
Payment method verified
Member since Sep 22, 2016

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.